1 package org.hibernate.test.legacy; 3 4 import java.io.Serializable ; 5 import java.util.Collection ; 6 7 8 public class MoreStuff implements Serializable { 9 private String stringId; 10 private int intId; 11 private Collection stuffs; 12 private String name; 13 14 public boolean equals(Object other) { 15 return ( (MoreStuff) other ).getIntId()==intId && ( (MoreStuff) other ).getStringId().equals(stringId); 16 } 17 18 public int hashCode() { 19 return stringId.hashCode(); 20 } 21 22 26 public Collection getStuffs() { 27 return stuffs; 28 } 29 30 34 public void setStuffs(Collection stuffs) { 35 this.stuffs = stuffs; 36 } 37 38 42 public String getName() { 43 return name; 44 } 45 46 50 public void setName(String name) { 51 this.name = name; 52 } 53 54 58 public int getIntId() { 59 return intId; 60 } 61 62 66 public String getStringId() { 67 return stringId; 68 } 69 70 74 public void setIntId(int intId) { 75 this.intId = intId; 76 } 77 78 82 public void setStringId(String stringId) { 83 this.stringId = stringId; 84 } 85 86 } 87 88 89 90 91 92 93 | Popular Tags |