KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Parent.java,v 1.3 2005/02/12 07:27:31 steveebersole Exp $
2
package org.hibernate.test.unidir;
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     Parent() {}
14     public Parent(String JavaDoc name) {
15         this.name = name;
16     }
17     public List JavaDoc getChildren() {
18         return children;
19     }
20     public void setChildren(List JavaDoc children) {
21         this.children = children;
22     }
23     public String JavaDoc getName() {
24         return name;
25     }
26     public void setName(String JavaDoc name) {
27         this.name = name;
28     }
29 }
30
Popular Tags