KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > unionsubclass > Thing


1 //$Id: Thing.java,v 1.1 2004/08/22 13:38:16 oneovthafew Exp $
2
package org.hibernate.test.unionsubclass;
3
4 /**
5  * @author Gavin King
6  */

7 public class Thing {
8     private long id;
9     private String JavaDoc description;
10     private Being owner;
11     /**
12      * @return Returns the description.
13      */

14     public String JavaDoc getDescription() {
15         return description;
16     }
17     /**
18      * @param description The description to set.
19      */

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

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

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

38     public Being getOwner() {
39         return owner;
40     }
41     /**
42      * @param owner The owner to set.
43      */

44     public void setOwner(Being owner) {
45         this.owner = owner;
46     }
47 }
48
Popular Tags