Represents a relationship
| Fields inherited from class | Fields | 
|---|---|
| class GraphPersistentEntity | LABEL_SEPARATOR, MATCH, MATCH_ID, assignedId, batchCreateStatement, batchId, classMapping, hasDynamicAssociations, hasDynamicLabels, idGenerator, idGeneratorType, labelObjects, mappedForm, nativeId, nodeId, relationshipEntity, staticLabels, variableId | 
| class AbstractPersistentEntity | associations, context, embedded, identity, javaClass, mappedPropertiesByName, owners, persistentProperties, persistentPropertyNames, propertiesByName, version | 
| Constructor and description | 
|---|
| RelationshipPersistentEntity
                                (java.lang.Class javaClass, MappingContext context, boolean external = false) | 
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | java.lang.String | buildMatch(java.lang.String type = this.type(, java.lang.String var = "r") | 
|  | java.lang.String | buildRelationshipMatch(java.lang.String type, java.lang.String var = "r") | 
|  | java.lang.String | buildRelationshipMatchTo(java.lang.String type, java.lang.String var = "r") | 
|  | java.lang.String | buildToMatch(java.lang.String var = "r") | 
|  | java.lang.String | formatAssociationPatternFromExisting(Association association, java.lang.String var = CypherBuilder.REL_VAR, java.lang.String start = FROM, java.lang.String end = TO)Formats an association match from an existing matched node | 
|  | java.lang.String | formatBatchCreate(java.lang.String batchId, java.lang.String type = this.type() | 
|  | java.lang.String | formatMatchId(java.lang.String variable) | 
|  | java.lang.String | formatProperty(java.lang.String variable, java.lang.String property) | 
|  | Association | getFrom() | 
|  | GraphPersistentEntity | getFromEntity() | 
|  | Association | getTo() | 
|  | GraphPersistentEntity | getToEntity() | 
|  | java.lang.String | getVariableName() | 
|  | boolean | hasDynamicAssociations() | 
|  | boolean | hasDynamicLabels() | 
|  | void | initialize() | 
|  | static boolean | isRelationshipAssociation(PersistentProperty association) | 
|  | boolean | isVersioned() | 
|  | java.lang.String | type() | 
The name of the from property
The name of the to property
The relationship type
Formats an association match from an existing matched node
association -  The associationvar -  The variable name to use for the relationship. Defaults to 'r"start -  The start variable nameend -  The relationship variable name