KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Several.java,v 1.1 2004/09/26 05:18:25 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 import java.io.Serializable JavaDoc;
5
6
7 public class Several implements Serializable JavaDoc {
8     private String JavaDoc id;
9     private String JavaDoc prop;
10     private Single single;
11     private String JavaDoc string;
12     /**
13      * Returns the id.
14      * @return String
15      */

16     public String JavaDoc getId() {
17         return id;
18     }
19     
20     /**
21      * Returns the prop.
22      * @return String
23      */

24     public String JavaDoc getProp() {
25         return prop;
26     }
27     
28     /**
29      * Returns the single.
30      * @return Single
31      */

32     public Single getSingle() {
33         return single;
34     }
35     
36     /**
37      * Sets the id.
38      * @param id The id to set
39      */

40     public void setId(String JavaDoc id) {
41         this.id = id;
42     }
43     
44     /**
45      * Sets the prop.
46      * @param prop The prop to set
47      */

48     public void setProp(String JavaDoc prop) {
49         this.prop = prop;
50     }
51     
52     /**
53      * Sets the single.
54      * @param single The single to set
55      */

56     public void setSingle(Single single) {
57         this.single = single;
58     }
59     
60     /**
61      * Returns the string.
62      * @return String
63      */

64     public String JavaDoc getString() {
65         return string;
66     }
67     
68     /**
69      * Sets the string.
70      * @param string The string to set
71      */

72     public void setString(String JavaDoc string) {
73         this.string = string;
74     }
75     
76     /*public boolean equals(Object other) {
77         return ( (Several) other ).id.equals(id) && ( (Several) other ).string.equals(string);
78     }
79     
80     public int hashCode() {
81         return id.hashCode();
82     }*/

83     
84 }
85
86
87
88
89
90
91
Popular Tags