KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Simple.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 public class Simple implements Serializable JavaDoc {
7     private String JavaDoc name;
8     private String JavaDoc address;
9     private int count;
10     private java.util.Date JavaDoc date;
11     private Float JavaDoc number;
12     private Simple other;
13
14     private Long JavaDoc parent;
15
16     public Simple(int c) {
17         count=c;
18     }
19     public Simple() {}
20
21     public void init() {
22         name="Someone With Along Name";
23         address="1234 Some Street, Some City, Victoria, 3000, Austraya";
24         count=69;
25         date=new java.sql.Date JavaDoc(666);
26         number=new Float JavaDoc(55.8);
27     }
28     /**
29      * Gets the name
30      * @return Returns a String
31      */

32     public String JavaDoc getName() {
33         return name;
34     }
35     /**
36      * Sets the name
37      * @param name The name to set
38      */

39     public void setName(String JavaDoc name) {
40         this.name = name;
41     }
42
43     /**
44      * Gets the address
45      * @return Returns a String
46      */

47     public String JavaDoc getAddress() {
48         return address;
49     }
50     /**
51      * Sets the address
52      * @param address The address to set
53      */

54     public void setAddress(String JavaDoc address) {
55         this.address = address;
56     }
57
58     /**
59      * Gets the count
60      * @return Returns a int
61      */

62     public int getCount() {
63         return count;
64     }
65     /**
66      * Sets the count
67      * @param count The count to set
68      */

69     public void setCount(int count) {
70         this.count = count;
71     }
72
73     /**
74      * Gets the date
75      * @return Returns a java.util.Date
76      */

77     public java.util.Date JavaDoc getDate() {
78         return date;
79     }
80     /**
81      * Sets the date
82      * @param date The date to set
83      */

84     public void setDate(java.util.Date JavaDoc date) {
85         this.date = date;
86     }
87
88     /**
89      * Gets the pay number
90      * @return Returns a Float
91      */

92     public Float JavaDoc getPay() {
93         return number;
94     }
95
96     /**
97      * Sets the pay number
98      * @param number The Pay to set
99      */

100     public void setPay(Float JavaDoc number) {
101         this.number = number;
102     }
103
104     /**
105      * Returns the other.
106      * @return Simple
107      */

108     public Simple getOther() {
109         return other;
110     }
111
112     /**
113      * Sets the other.
114      * @param other The other to set
115      */

116     public void setOther(Simple other) {
117         this.other = other;
118     }
119
120 }
121
122
123
124
125
126
127
128
Popular Tags