KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > onetomany > Child


1 //$Id: Child.java,v 1.1 2004/08/19 10:12:11 oneovthafew Exp $
2
package org.hibernate.test.onetomany;
3
4 /**
5  * @author gavin
6  */

7 public class Child {
8     private Long JavaDoc id;
9     private String JavaDoc name;
10     private Parent parent;
11     /**
12      * @return Returns the id.
13      */

14     public Long JavaDoc getId() {
15         return id;
16     }
17     /**
18      * @param id The id to set.
19      */

20     public void setId(Long JavaDoc id) {
21         this.id = id;
22     }
23     /**
24      * @return Returns the name.
25      */

26     public String JavaDoc getName() {
27         return name;
28     }
29     /**
30      * @param name The name to set.
31      */

32     public void setName(String JavaDoc name) {
33         this.name = name;
34     }
35     /**
36      * @return Returns the parent.
37      */

38     public Parent getParent() {
39         return parent;
40     }
41     /**
42      * @param parent The parent to set.
43      */

44     public void setParent(Parent parent) {
45         this.parent = parent;
46     }
47 }
48
Popular Tags