KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: C2.java,v 1.1 2004/09/26 05:18:25 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.Collection JavaDoc;
6
7 public class C2 extends B {
8     private String JavaDoc address;
9     private C1 c1;
10     private String JavaDoc c2Name;
11     private Collection JavaDoc c1s = new ArrayList JavaDoc();
12     /**
13      * Returns the address.
14      * @return String
15      */

16     public String JavaDoc getAddress() {
17         return address;
18     }
19     
20     /**
21      * Sets the address.
22      * @param address The address to set
23      */

24     public void setAddress(String JavaDoc address) {
25         this.address = address;
26     }
27     
28     /**
29      * @return Returns the c.
30      */

31     public C1 getC1() {
32         return c1;
33     }
34
35     /**
36      * @param c The c to set.
37      */

38     public void setC1(C1 c) {
39         this.c1 = c;
40     }
41
42     /**
43      * @return Returns the cs.
44      */

45     public Collection JavaDoc getC1s() {
46         return c1s;
47     }
48
49     /**
50      * @param cs The cs to set.
51      */

52     public void setC1s(Collection JavaDoc cs) {
53         this.c1s = cs;
54     }
55
56     public String JavaDoc getC2Name() {
57         return c2Name;
58     }
59
60     public void setC2Name(String JavaDoc name) {
61         c2Name = name;
62     }
63 }
64
65
66
67
68
69
70
Popular Tags