1 package org.hibernate.test.legacy; 3 4 public class FumCompositeID implements java.io.Serializable { 5 String string_; 6 java.util.Date date_; 7 short short_; 8 public boolean equals(Object other) { 9 FumCompositeID that = (FumCompositeID) other; 10 return this.string_.equals(that.string_) && this.short_==that.short_; 11 } 12 public int hashCode() { 13 return string_.hashCode(); 14 } 15 public String getString() { 16 return string_; 17 } 18 public void setString(String string_) { 19 this.string_ = string_; 20 } 21 public java.util.Date getDate() { 22 return date_; 23 } 24 public void setDate(java.util.Date date_) { 25 this.date_ = date_; 26 } 27 public short getShort() { 28 return short_; 29 } 30 public void setShort(short short_) { 31 this.short_ = short_; 32 } 33 } 34 35 36 37 38 39 40 41 | Popular Tags |