KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > testGenerateBeans_Table175


1 /*
2  * Table175.java
3  *
4  * Created on 11 September 2006, 14:39
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package test;
11
12 import java.io.Serializable JavaDoc;
13 import java.math.BigInteger JavaDoc;
14 import java.util.Date JavaDoc;
15 import javax.persistence.Column;
16 import javax.persistence.Entity;
17 import javax.persistence.Id;
18 import javax.persistence.Lob;
19 import javax.persistence.Table;
20 import javax.persistence.Temporal;
21 import javax.persistence.TemporalType;
22
23 /**
24  * Entity class Table175
25  *
26  * @author honza
27  */

28 @Entity
29 @Table(name = "TABLE175")
30 public class Table175 implements Serializable JavaDoc {
31
32     @Id
33     @Column(name = "ID", nullable = false)
34     private Integer JavaDoc id;
35
36     @Column(name = "A")
37     private BigInteger JavaDoc a;
38
39     @Lob
40     @Column(name = "B")
41     private Serializable JavaDoc b;
42
43     @Column(name = "C")
44     private Character JavaDoc c;
45
46     @Lob
47     @Column(name = "D")
48     private String JavaDoc d;
49
50     @Column(name = "E")
51     @Temporal(TemporalType.DATE)
52     private Date JavaDoc e;
53
54     @Column(name = "F")
55     private Integer JavaDoc f;
56
57     @Column(name = "G")
58     private Double JavaDoc g;
59
60     @Column(name = "H")
61     private Double JavaDoc h;
62
63     @Column(name = "I")
64     private Double JavaDoc i;
65
66     @Column(name = "J")
67     private Integer JavaDoc j;
68
69     @Lob
70     @Column(name = "K")
71     private String JavaDoc k;
72
73     @Column(name = "L")
74     private Integer JavaDoc l;
75
76     @Column(name = "M")
77     private Float JavaDoc m;
78
79     @Column(name = "N")
80     private Short JavaDoc n;
81
82     @Column(name = "O")
83     @Temporal(TemporalType.TIME)
84     private Date JavaDoc o;
85
86     @Column(name = "P")
87     @Temporal(TemporalType.TIMESTAMP)
88     private Date JavaDoc p;
89
90     @Column(name = "Q")
91     private String JavaDoc q;
92     
93     /** Creates a new instance of Table175 */
94     public Table175() {
95     }
96
97     /**
98      * Creates a new instance of Table175 with the specified values.
99      * @param id the id of the Table175
100      */

101     public Table175(Integer JavaDoc id) {
102         this.id = id;
103     }
104
105     /**
106      * Gets the id of this Table175.
107      * @return the id
108      */

109     public Integer JavaDoc getId() {
110         return this.id;
111     }
112
113     /**
114      * Sets the id of this Table175 to the specified value.
115      * @param id the new id
116      */

117     public void setId(Integer JavaDoc id) {
118         this.id = id;
119     }
120
121     /**
122      * Gets the a of this Table175.
123      * @return the a
124      */

125     public BigInteger JavaDoc getA() {
126         return this.a;
127     }
128
129     /**
130      * Sets the a of this Table175 to the specified value.
131      * @param a the new a
132      */

133     public void setA(BigInteger JavaDoc a) {
134         this.a = a;
135     }
136
137     /**
138      * Gets the b of this Table175.
139      * @return the b
140      */

141     public Serializable JavaDoc getB() {
142         return this.b;
143     }
144
145     /**
146      * Sets the b of this Table175 to the specified value.
147      * @param b the new b
148      */

149     public void setB(Serializable JavaDoc b) {
150         this.b = b;
151     }
152
153     /**
154      * Gets the c of this Table175.
155      * @return the c
156      */

157     public Character JavaDoc getC() {
158         return this.c;
159     }
160
161     /**
162      * Sets the c of this Table175 to the specified value.
163      * @param c the new c
164      */

165     public void setC(Character JavaDoc c) {
166         this.c = c;
167     }
168
169     /**
170      * Gets the d of this Table175.
171      * @return the d
172      */

173     public String JavaDoc getD() {
174         return this.d;
175     }
176
177     /**
178      * Sets the d of this Table175 to the specified value.
179      * @param d the new d
180      */

181     public void setD(String JavaDoc d) {
182         this.d = d;
183     }
184
185     /**
186      * Gets the e of this Table175.
187      * @return the e
188      */

189     public Date JavaDoc getE() {
190         return this.e;
191     }
192
193     /**
194      * Sets the e of this Table175 to the specified value.
195      * @param e the new e
196      */

197     public void setE(Date JavaDoc e) {
198         this.e = e;
199     }
200
201     /**
202      * Gets the f of this Table175.
203      * @return the f
204      */

205     public Integer JavaDoc getF() {
206         return this.f;
207     }
208
209     /**
210      * Sets the f of this Table175 to the specified value.
211      * @param f the new f
212      */

213     public void setF(Integer JavaDoc f) {
214         this.f = f;
215     }
216
217     /**
218      * Gets the g of this Table175.
219      * @return the g
220      */

221     public Double JavaDoc getG() {
222         return this.g;
223     }
224
225     /**
226      * Sets the g of this Table175 to the specified value.
227      * @param g the new g
228      */

229     public void setG(Double JavaDoc g) {
230         this.g = g;
231     }
232
233     /**
234      * Gets the h of this Table175.
235      * @return the h
236      */

237     public Double JavaDoc getH() {
238         return this.h;
239     }
240
241     /**
242      * Sets the h of this Table175 to the specified value.
243      * @param h the new h
244      */

245     public void setH(Double JavaDoc h) {
246         this.h = h;
247     }
248
249     /**
250      * Gets the i of this Table175.
251      * @return the i
252      */

253     public Double JavaDoc getI() {
254         return this.i;
255     }
256
257     /**
258      * Sets the i of this Table175 to the specified value.
259      * @param i the new i
260      */

261     public void setI(Double JavaDoc i) {
262         this.i = i;
263     }
264
265     /**
266      * Gets the j of this Table175.
267      * @return the j
268      */

269     public Integer JavaDoc getJ() {
270         return this.j;
271     }
272
273     /**
274      * Sets the j of this Table175 to the specified value.
275      * @param j the new j
276      */

277     public void setJ(Integer JavaDoc j) {
278         this.j = j;
279     }
280
281     /**
282      * Gets the k of this Table175.
283      * @return the k
284      */

285     public String JavaDoc getK() {
286         return this.k;
287     }
288
289     /**
290      * Sets the k of this Table175 to the specified value.
291      * @param k the new k
292      */

293     public void setK(String JavaDoc k) {
294         this.k = k;
295     }
296
297     /**
298      * Gets the l of this Table175.
299      * @return the l
300      */

301     public Integer JavaDoc getL() {
302         return this.l;
303     }
304
305     /**
306      * Sets the l of this Table175 to the specified value.
307      * @param l the new l
308      */

309     public void setL(Integer JavaDoc l) {
310         this.l = l;
311     }
312
313     /**
314      * Gets the m of this Table175.
315      * @return the m
316      */

317     public Float JavaDoc getM() {
318         return this.m;
319     }
320
321     /**
322      * Sets the m of this Table175 to the specified value.
323      * @param m the new m
324      */

325     public void setM(Float JavaDoc m) {
326         this.m = m;
327     }
328
329     /**
330      * Gets the n of this Table175.
331      * @return the n
332      */

333     public Short JavaDoc getN() {
334         return this.n;
335     }
336
337     /**
338      * Sets the n of this Table175 to the specified value.
339      * @param n the new n
340      */

341     public void setN(Short JavaDoc n) {
342         this.n = n;
343     }
344
345     /**
346      * Gets the o of this Table175.
347      * @return the o
348      */

349     public Date JavaDoc getO() {
350         return this.o;
351     }
352
353     /**
354      * Sets the o of this Table175 to the specified value.
355      * @param o the new o
356      */

357     public void setO(Date JavaDoc o) {
358         this.o = o;
359     }
360
361     /**
362      * Gets the p of this Table175.
363      * @return the p
364      */

365     public Date JavaDoc getP() {
366         return this.p;
367     }
368
369     /**
370      * Sets the p of this Table175 to the specified value.
371      * @param p the new p
372      */

373     public void setP(Date JavaDoc p) {
374         this.p = p;
375     }
376
377     /**
378      * Gets the q of this Table175.
379      * @return the q
380      */

381     public String JavaDoc getQ() {
382         return this.q;
383     }
384
385     /**
386      * Sets the q of this Table175 to the specified value.
387      * @param q the new q
388      */

389     public void setQ(String JavaDoc q) {
390         this.q = q;
391     }
392
393     /**
394      * Returns a hash code value for the object. This implementation computes
395      * a hash code value based on the id fields in this object.
396      * @return a hash code value for this object.
397      */

398     @Override JavaDoc
399     public int hashCode() {
400         int hash = 0;
401         hash += (this.id != null ? this.id.hashCode() : 0);
402         return hash;
403     }
404
405     /**
406      * Determines whether another object is equal to this Table175. The result is
407      * <code>true</code> if and only if the argument is not null and is a Table175 object that
408      * has the same id field values as this object.
409      * @param object the reference object with which to compare
410      * @return <code>true</code> if this object is the same as the argument;
411      * <code>false</code> otherwise.
412      */

413     @Override JavaDoc
414     public boolean equals(Object JavaDoc object) {
415         // TODO: Warning - this method won't work in the case the id fields are not set
416
if (!(object instanceof Table175)) {
417             return false;
418         }
419         Table175 other = (Table175)object;
420         if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) return false;
421         return true;
422     }
423
424     /**
425      * Returns a string representation of the object. This implementation constructs
426      * that representation based on the id fields.
427      * @return a string representation of the object.
428      */

429     @Override JavaDoc
430     public String JavaDoc toString() {
431         return "test.Table175[id=" + id + "]";
432     }
433     
434 }
435
Popular Tags