Package org.neo4j.ogm.context
Class MappedRelationship
java.lang.Object
org.neo4j.ogm.context.MappedRelationship
- All Implemented Interfaces:
Mappable
Light-weight record of a relationship mapped from the database
startNodeId - relationshipId - relationshipType - endNodeId
The relationshipId is recorded for relationship entities, and not for simple relationships.
The relationship direction is always OUTGOING from the startNodeId to the endNodeId.
The startNodeType and endNodeType represent the class type of the entities on either end of the relationship, and may be a relationship entity class.- Author:
- Adam George, Luanne Misquitta, Andreas Berger, Michael J. Simons, Torsten Kuhnhenne
-
Constructor Details
-
MappedRelationship
-
-
Method Details
-
getStartNodeId
public long getStartNodeId()- Specified by:
getStartNodeId
in interfaceMappable
-
getRelationshipType
- Specified by:
getRelationshipType
in interfaceMappable
-
getEndNodeId
public long getEndNodeId()- Specified by:
getEndNodeId
in interfaceMappable
-
getRelationshipId
-
getEndNodeType
- Specified by:
getEndNodeType
in interfaceMappable
-
getStartNodeType
- Specified by:
getStartNodeType
in interfaceMappable
-
equals
-
hashCode
public int hashCode() -
toString
-