KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > legacy > FumCompositeID


1 //$Id: FumCompositeID.java,v 1.1 2004/09/26 05:18:25 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 public class FumCompositeID implements java.io.Serializable JavaDoc {
5     String JavaDoc string_;
6     java.util.Date JavaDoc date_;
7     short short_;
8     public boolean equals(Object JavaDoc 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 JavaDoc getString() {
16         return string_;
17     }
18     public void setString(String JavaDoc string_) {
19         this.string_ = string_;
20     }
21     public java.util.Date JavaDoc getDate() {
22         return date_;
23     }
24     public void setDate(java.util.Date JavaDoc 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