Package org.neo4j.smack.serialization.strategy

Examples of org.neo4j.smack.serialization.strategy.RelationshipCreationDescription


    @DeserializeWith(RelationshipCreationDeserializationStrategy.class)
    @SerializeWith(RelationshipSerializationStrategy.class)
    public void createRelationship(Invocation invocation, Output result)
    {
        GraphDatabaseService db = invocation.getDB();
        RelationshipCreationDescription relToCreate = invocation.getContent();
       
        Node from = db.getNodeById(getNodeId(invocation));
        Node to   = db.getNodeById(relToCreate.getEndNodeId());
       
        Relationship rel = from.createRelationshipTo(to, relToCreate.getType());
        setProperties(rel, relToCreate);
       
        result.createdAt(url.reverse(rel), rel);
    }
View Full Code Here

TOP

Related Classes of org.neo4j.smack.serialization.strategy.RelationshipCreationDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.