KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > mixed > Item


1 //$Id: Item.java,v 1.1 2004/08/22 02:20:51 oneovthafew Exp $
2
package org.hibernate.test.mixed;
3
4 /**
5  * @author Gavin King
6  */

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

14     public Folder getParent() {
15         return parent;
16     }
17     /**
18      * @param parent The parent to set.
19      */

20     public void setParent(Folder parent) {
21         this.parent = parent;
22     }
23     /**
24      * @return Returns the id.
25      */

26     public Long JavaDoc getId() {
27         return id;
28     }
29     /**
30      * @param id The id to set.
31      */

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

38     public String JavaDoc getName() {
39         return name;
40     }
41     /**
42      * @param name The name to set.
43      */

44     public void setName(String JavaDoc name) {
45         this.name = name;
46     }
47 }
48
Popular Tags