1 package org.hibernate.test.legacy; 3 4 import java.io.Serializable ; 5 import java.util.Date ; 6 7 10 public class Broken implements Serializable { 11 private Long id; 12 private String otherId; 13 private Date timestamp; 14 public Long getId() { 15 return id; 16 } 17 18 public Date getTimestamp() { 19 return timestamp; 20 } 21 22 public void setId(Long long1) { 23 id = long1; 24 } 25 26 public void setTimestamp(Date date) { 27 timestamp = date; 28 } 29 30 public String getOtherId() { 31 return otherId; 32 } 33 34 public void setOtherId(String string) { 35 otherId = string; 36 } 37 38 public boolean equals(Object other) { 39 if ( !(other instanceof Broken) ) return false; 40 Broken that = (Broken) other; 41 return this.id.equals(that.id) && this.otherId.equals(that.otherId); 42 } 43 44 public int hashCode() { 45 return 1; 46 } 47 48 } 49 | Popular Tags |