Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. public class A{
  2.     private attrA_1;
  3.     private attrA_2;
  4.     private attrA_3;
  5.  
  6.     @OneToOne
  7.     private B b;
  8.  
  9.     @OneToMany
  10.     private Set<C> c;
  11.  
  12.     //getter e setter
  13. }
  14.  
  15. public class B{
  16.     private attrB_1;
  17.     private attrB_2;
  18.     private attrB_3;
  19.  
  20.     //getter e setter
  21. }
  22.  
  23. public class C{
  24.     private attrC_1;
  25.     private attrC_2;
  26.  
  27.     //getter e setter
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement