1 package org.hibernate.test.legacy; 3 4 import java.util.ArrayList ; 5 import java.util.List ; 6 7 8 public class X { 9 10 private long id; 11 private Y y; 12 private List xxs = new ArrayList (); 13 14 18 public long getId() { 19 return id; 20 } 21 22 26 public Y getY() { 27 return y; 28 } 29 30 34 public void setId(long id) { 35 this.id = id; 36 } 37 38 42 public void setY(Y y) { 43 this.y = y; 44 } 45 46 public List getXxs() { 47 return xxs; 48 } 49 50 public void setXxs(List xxs) { 51 this.xxs = xxs; 52 } 53 54 public static class XX { 55 private Long id; 56 private X x; 57 private XX() {} 58 public XX(X x) { 59 this.x = x; 60 } 61 public Long getId() { 62 return id; 63 } 64 65 public void setId(Long id) { 66 this.id = id; 67 } 68 69 public X getX() { 70 return x; 71 } 72 73 public void setX(X x) { 74 this.x = x; 75 } 76 77 } 78 79 } 80 | Popular Tags |