KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Alien.java,v 1.3 2005/02/12 07:27:32 steveebersole Exp $
2
package org.hibernate.test.unionsubclass;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.List JavaDoc;
6
7 /**
8  * @author Gavin King
9  */

10 public class Alien extends Being {
11     private String JavaDoc species;
12     private Hive hive;
13     private List JavaDoc hivemates = new ArrayList JavaDoc();
14     /**
15      * @return Returns the species.
16      */

17     public String JavaDoc getSpecies() {
18         return species;
19     }
20     /**
21      * @param species The species to set.
22      */

23     public void setSpecies(String JavaDoc species) {
24         this.species = species;
25     }
26     public Hive getHive() {
27         return hive;
28     }
29     public void setHive(Hive hive) {
30         this.hive = hive;
31     }
32     public List JavaDoc getHivemates() {
33         return hivemates;
34     }
35     public void setHivemates(List JavaDoc hivemates) {
36         this.hivemates = hivemates;
37     }
38 }
39
Popular Tags