KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Human.java,v 1.2 2004/08/17 12:10:32 oneovthafew Exp $
2
package org.hibernate.test.unionsubclass;
3
4 /**
5  * @author Gavin King
6  */

7 public class Human extends Being {
8     private char sex;
9     
10     /**
11      * @return Returns the sex.
12      */

13     public char getSex() {
14         return sex;
15     }
16     /**
17      * @param sex The sex to set.
18      */

19     public void setSex(char sex) {
20         this.sex = sex;
21     }
22     public String JavaDoc getSpecies() {
23         return "human";
24     }
25
26 }
27
Popular Tags