KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: X.java,v 1.1 2004/09/26 05:18:26 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.List JavaDoc;
6
7
8 public class X {
9
10     private long id;
11     private Y y;
12     private List JavaDoc xxs = new ArrayList JavaDoc();
13
14     /**
15      * Returns the id.
16      * @return long
17      */

18     public long getId() {
19         return id;
20     }
21
22     /**
23      * Returns the y.
24      * @return Y
25      */

26     public Y getY() {
27         return y;
28     }
29
30     /**
31      * Sets the id.
32      * @param id The id to set
33      */

34     public void setId(long id) {
35         this.id = id;
36     }
37
38     /**
39      * Sets the y.
40      * @param y The y to set
41      */

42     public void setY(Y y) {
43         this.y = y;
44     }
45     
46     public List JavaDoc getXxs() {
47         return xxs;
48     }
49
50     public void setXxs(List JavaDoc xxs) {
51         this.xxs = xxs;
52     }
53
54     public static class XX {
55         private Long JavaDoc id;
56         private X x;
57         private XX() {}
58         public XX(X x) {
59             this.x = x;
60         }
61         public Long JavaDoc getId() {
62             return id;
63         }
64
65         public void setId(Long JavaDoc id) {
66             this.id = id;
67         }
68
69         public X getX() {
70             return x;
71         }
72
73         public void setX(X x) {
74             this.x = x;
75         }
76
77     }
78
79 }
80
Popular Tags