Guest User

Untitled

a guest
Apr 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. class A{
  2. @ManyToMany
  3. List<B> bs;
  4. //other attributes and getter setters
  5. }
  6.  
  7. class B{
  8.  
  9. @ManyToMany
  10. List<C> cs;
  11. //other attributes and getter setters
  12. }
  13.  
  14. class C{
  15. //other attributes and getter setters
  16. }
  17.  
  18. A:{
  19. "A_id": 1
  20. B:[
  21. "B_id": 1
  22. {
  23. C:[
  24. {"C_id": 1}, {"C_id": 2}
  25. ]
  26. },
  27. {
  28. "B_id": 2
  29. C:[
  30. {"C_id": 2}
  31. ]
  32. }
  33. ]
  34. }
  35.  
  36. A_id B_id C_id
  37. =====================
  38. 1 1 1
  39. 1 1 2
  40. 1 2 2
Add Comment
Please, Sign In to add comment