›Relationship Properties
3.7 · Lesson
Relationship Properties
Last lesson, you mapped the ACTED_IN iFull definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node. from the graph to the actors field in the Movie class. Now you will map the relationship's iFull definition for property (opens in a new tab)A named value stored on a node or a relationship. role by creating a separate Role class to contain the field.
- Create a new class called
Role.javain thesrc/main/java/com/example/appspringdatapackage. - Import
RelationshipId,RelationshipProperties, andTargetNodeclasses.
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register