KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Person.java,v 1.1 2005/04/03 03:56:22 oneovthafew Exp $
2
package org.hibernate.test.unconstrained;
3
4 /**
5  * @author Gavin King
6  */

7 public class Person {
8     
9     private String JavaDoc name;
10     private String JavaDoc employeeId;
11     private Employee employee;
12
13     public Person() {}
14     public Person(String JavaDoc name) {
15         this.name = name;
16     }
17     
18     public Employee getEmployee() {
19         return employee;
20     }
21     
22     public void setEmployee(Employee employee) {
23         this.employee = employee;
24     }
25     
26     public String JavaDoc getEmployeeId() {
27         return employeeId;
28     }
29     
30     public void setEmployeeId(String JavaDoc employeeId) {
31         this.employeeId = employeeId;
32     }
33     
34     public String JavaDoc getName() {
35         return name;
36     }
37     
38     public void setName(String JavaDoc name) {
39         this.name = name;
40     }
41     
42
43 }
44
Popular Tags