KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > subselectfetch > Parent


1 //$Id: Parent.java,v 1.1 2005/03/17 05:56:00 oneovthafew Exp $
2
package org.hibernate.test.subselectfetch;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.List JavaDoc;
6
7 /**
8  * @author Gavin King
9  */

10 public class Parent {
11     private String JavaDoc name;
12     private List JavaDoc children = new ArrayList JavaDoc();
13     private List JavaDoc moreChildren = new ArrayList JavaDoc();
14     
15     Parent() {}
16     public Parent(String JavaDoc name) {
17         this.name = name;
18     }
19
20     public String JavaDoc getName() {
21         return name;
22     }
23     
24     public void setName(String JavaDoc name) {
25         this.name = name;
26     }
27
28     public List JavaDoc getChildren() {
29         return children;
30     }
31
32     public void setChildren(List JavaDoc children) {
33         this.children = children;
34     }
35     
36     public List JavaDoc getMoreChildren() {
37         return moreChildren;
38     }
39     
40     public void setMoreChildren(List JavaDoc moreChildren) {
41         this.moreChildren = moreChildren;
42     }
43     
44     
45 }
46
Popular Tags