Guest User

Untitled

a guest
Jan 22nd, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. @Entity
  2. public class EntityOne {
  3.  
  4. @OneToMany
  5. private Set<EntityTwo> entityTwoCollection;
  6.  
  7. }
  8.  
  9. @Entity
  10. public class EntityTwo {
  11.  
  12. @OneToMany
  13. private Set<EntityThree> entityThreeCollection;
  14.  
  15. }
  16.  
  17. @Entity
  18. public class EntityThree {
  19.  
  20. @OneToMany
  21. private Set<EntityFour> EntityFourCollection;
  22.  
  23. }
  24.  
  25. ...
  26. // 4, 5 ... 20
Add Comment
Please, Sign In to add comment