KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > extendshbm > Person


1 //$Id: Person.java,v 1.1 2004/12/19 22:01:24 maxcsaucdk Exp $
2
package org.hibernate.test.extendshbm;
3
4
5 /**
6  * @author Gavin King
7  */

8 public class Person {
9     private long id;
10     private String JavaDoc name;
11     private char sex;
12     
13     /**
14      * @return Returns the sex.
15      */

16     public char getSex() {
17         return sex;
18     }
19     /**
20      * @param sex The sex to set.
21      */

22     public void setSex(char sex) {
23         this.sex = sex;
24     }
25     /**
26      * @return Returns the id.
27      */

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

34     public void setId(long id) {
35         this.id = id;
36     }
37     /**
38      * @return Returns the identity.
39      */

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

46     public void setName(String JavaDoc identity) {
47         this.name = identity;
48     }
49
50 }
51
Popular Tags