KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Being.java,v 1.4 2005/03/04 12:01:43 oneovthafew Exp $
2
package org.hibernate.test.unionsubclass;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.HashMap JavaDoc;
6 import java.util.List JavaDoc;
7 import java.util.Map JavaDoc;
8
9 /**
10  * @author Gavin King
11  */

12 public abstract class Being {
13     private long id;
14     private String JavaDoc identity;
15     private Location location;
16     private List JavaDoc things = new ArrayList JavaDoc();
17     private Map JavaDoc info = new HashMap JavaDoc();
18     /**
19      * @return Returns the id.
20      */

21     public long getId() {
22         return id;
23     }
24     /**
25      * @param id The id to set.
26      */

27     public void setId(long id) {
28         this.id = id;
29     }
30     /**
31      * @return Returns the identity.
32      */

33     public String JavaDoc getIdentity() {
34         return identity;
35     }
36     /**
37      * @param identity The identity to set.
38      */

39     public void setIdentity(String JavaDoc identity) {
40         this.identity = identity;
41     }
42     /**
43      * @return Returns the location.
44      */

45     public Location getLocation() {
46         return location;
47     }
48     /**
49      * @param location The location to set.
50      */

51     public void setLocation(Location location) {
52         this.location = location;
53     }
54     public String JavaDoc getSpecies() {
55         return null;
56     }
57
58     public List JavaDoc getThings() {
59         return things;
60     }
61     public void setThings(List JavaDoc things) {
62         this.things = things;
63     }
64     public Map JavaDoc getInfo() {
65         return info;
66     }
67     
68     public void setInfo(Map JavaDoc info) {
69         this.info = info;
70     }
71     
72 }
73
Popular Tags