1 package org.hibernate.test.legacy; 2 3 import java.io.Serializable ; 4 import java.util.List ; 5 6 9 public class Inner implements Serializable { 10 private InnerKey id; 11 private String dudu; 12 private List middles; 13 private Outer backOut; 14 15 public InnerKey getId() { 16 return id; 17 } 18 19 public void setId(InnerKey id) { 20 this.id = id; 21 } 22 23 public String getDudu() { 24 return dudu; 25 } 26 27 public void setDudu(String dudu) { 28 this.dudu = dudu; 29 } 30 31 public boolean equals(Object o) { 32 if (this == o) return true; 33 if (!(o instanceof Inner)) return false; 34 35 final Inner cidSuper = (Inner) o; 36 37 if (id != null ? !id.equals(cidSuper.id) : cidSuper.id != null) return false; 38 39 return true; 40 } 41 42 public int hashCode() { 43 return (id != null ? id.hashCode() : 0); 44 } 45 public List getMiddles() { 46 return middles; 47 } 48 49 public void setMiddles(List list) { 50 middles = list; 51 } 52 53 public Outer getBackOut() { 54 return backOut; 55 } 56 57 public void setBackOut(Outer outer) { 58 backOut = outer; 59 } 60 61 } 62 | Popular Tags |