KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Top.java,v 1.3 2005/02/12 07:27:27 steveebersole Exp $
2
package org.hibernate.test.legacy;
3
4 public class Top {
5     private long id;
6     private String JavaDoc name;
7     private String JavaDoc address;
8     private int count;
9     private java.util.Date JavaDoc date;
10     private Top other;
11     private Top top;
12     
13     public Top(int c) {
14         count=c;
15     }
16     public Top() {}
17     
18     public void init() {
19         name="Someone With Along Name";
20         address="1234 Some Street, Some City, Victoria, 3000, Austraya";
21         count=69;
22         date=new java.sql.Date JavaDoc(666);
23     }
24     /**
25      * Gets the name
26      * @return Returns a String
27      */

28     public String JavaDoc getName() {
29         return name;
30     }
31     /**
32      * Sets the name
33      * @param name The name to set
34      */

35     public void setName(String JavaDoc name) {
36         this.name = name;
37     }
38     
39     /**
40      * Gets the address
41      * @return Returns a String
42      */

43     public String JavaDoc getAddress() {
44         return address;
45     }
46     /**
47      * Sets the address
48      * @param address The address to set
49      */

50     public void setAddress(String JavaDoc address) {
51         this.address = address;
52     }
53     
54     /**
55      * Gets the count
56      * @return Returns a int
57      */

58     public int getCount() {
59         return count;
60     }
61     /**
62      * Sets the count
63      * @param count The count to set
64      */

65     public void setCount(int count) {
66         this.count = count;
67     }
68     
69     /**
70      * Gets the date
71      * @return Returns a java.util.Date
72      */

73     public java.util.Date JavaDoc getDate() {
74         return date;
75     }
76     /**
77      * Sets the date
78      * @param date The date to set
79      */

80     public void setDate(java.util.Date JavaDoc date) {
81         this.date = date;
82     }
83     
84     /**
85      * Returns the other.
86      * @return Simple
87      */

88     public Top getOther() {
89         return other;
90     }
91     
92     /**
93      * Sets the other.
94      * @param other The other to set
95      */

96     public void setOther(Top other) {
97         this.other = other;
98     }
99     
100     public long getId() {
101         return id;
102     }
103
104     public void setId(long l) {
105         id = l;
106     }
107
108 }
109
110
111
112
113
114
115
116
Popular Tags