KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Person.java,v 1.2 2004/08/14 13:10:32 oneovthafew Exp $
2
package org.hibernate.test.sql;
3
4 /**
5  * @author Gavin King
6  */

7 public class Person {
8     private long id;
9     private String JavaDoc name;
10
11     public Person(String JavaDoc name) {
12         this.name = name;
13     }
14     
15     public Person() {}
16     
17 /**
18      * @return Returns the id.
19      */

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

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

32     public String JavaDoc getName() {
33         return name;
34     }
35     /**
36      * @param name The name to set.
37      */

38     public void setName(String JavaDoc name) {
39         this.name = name;
40     }
41 }
42
Popular Tags