KickJava   Java API By Example, From Geeks To Geeks.

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


1 // $Id: Person.java,v 1.1 2005/02/24 20:08:04 steveebersole Exp $
2
package org.hibernate.test.subclassfilter;
3
4 /**
5  * Implementation of Person.
6  *
7  * @author Steve Ebersole
8  */

9 public class Person {
10     private Long JavaDoc id;
11     private String JavaDoc name;
12     private String JavaDoc company;
13     private String JavaDoc region;
14
15     public Person() {
16     }
17
18     public Person(String JavaDoc name) {
19         this.name = name;
20     }
21
22     public Long JavaDoc getId() {
23         return id;
24     }
25
26     public void setId(Long JavaDoc id) {
27         this.id = id;
28     }
29
30     public String JavaDoc getName() {
31         return name;
32     }
33
34     public void setName(String JavaDoc name) {
35         this.name = name;
36     }
37
38     public String JavaDoc getCompany() {
39         return company;
40     }
41
42     public void setCompany(String JavaDoc company) {
43         this.company = company;
44     }
45
46     public String JavaDoc getRegion() {
47         return region;
48     }
49
50     public void setRegion(String JavaDoc region) {
51         this.region = region;
52     }
53 }
54
Popular Tags