KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Parent.java,v 1.1 2004/09/02 02:30:28 oneovthafew Exp $
2
package org.hibernate.test.compositeelement;
3
4 import java.util.Collection JavaDoc;
5 import java.util.HashSet JavaDoc;
6
7 /**
8  * @author gavin
9  */

10 public class Parent {
11     private Long JavaDoc id;
12     private String JavaDoc name;
13     private Collection JavaDoc children = new HashSet JavaDoc();
14     Parent() {}
15     public Parent(String JavaDoc name) {
16         this.name = name;
17     }
18     /**
19      * @return Returns the children.
20      */

21     public Collection JavaDoc getChildren() {
22         return children;
23     }
24     /**
25      * @param children The children to set.
26      */

27     public void setChildren(Collection JavaDoc children) {
28         this.children = children;
29     }
30     /**
31      * @return Returns the id.
32      */

33     public Long JavaDoc getId() {
34         return id;
35     }
36     /**
37      * @param id The id to set.
38      */

39     public void setId(Long JavaDoc id) {
40         this.id = id;
41     }
42     /**
43      * @return Returns the name.
44      */

45     public String JavaDoc getName() {
46         return name;
47     }
48     /**
49      * @param name The name to set.
50      */

51     public void setName(String JavaDoc name) {
52         this.name = name;
53     }
54 }
55
Popular Tags