1 package org.hibernate.test.legacy; 2 3 6 public class MainObject { 7 private Long id; 8 private String description; 9 private Object2 obj2; 10 11 public Long getId() { 12 return id; 13 } 14 15 public void setId(Long id) { 16 this.id = id; 17 } 18 19 public Object2 getObj2() { 20 return obj2; 21 } 22 23 public String getDescription() { 24 return description; 25 } 26 27 public void setDescription(String string) { 28 description = string; 29 } 30 31 public void setObj2(Object2 object2) { 32 this.obj2 = object2; 33 if (object2 != null) { 34 object2.setBelongsToMainObj(this); 35 } 36 } 37 38 } 39 | Popular Tags |