Guest User

Untitled

a guest
May 28th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @RelationshipEntity(type = "SEGMENT")
  2. public class SegmentGraphRelationship {
  3.  
  4. @GraphId
  5. private Long graphId;
  6. @StartNode
  7. private AbstractGraphNode departureNode;
  8. @EndNode
  9. private AbstractGraphNode arrivalNode;
  10. @Index
  11. private Long itineraryId;
  12. @Index
  13. private Long segmentId;
  14. @Index
  15. private Long transportPlanId;
  16.  
  17. private String type;
  18.  
  19. @Convert(DateConverter.class)
  20. private OffsetDateTime departureDate;
  21.  
  22. @Convert(DateConverter.class)
  23. private OffsetDateTime arrivalDate;
  24.  
  25. //Emtpy constructor and get/set
  26. }
Add Comment
Please, Sign In to add comment