KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Person.java,v 1.2 2005/02/12 07:27:30 steveebersole Exp $
2
package org.hibernate.test.onetoonelink;
3
4 import java.util.Date JavaDoc;
5
6 /**
7  * @author Gavin King
8  */

9 public class Person {
10     private String JavaDoc name;
11     private Date JavaDoc dob;
12     private Employee employee;
13     private Customer customer;
14     public Customer getCustomer() {
15         return customer;
16     }
17     public void setCustomer(Customer customer) {
18         this.customer = customer;
19     }
20     public Employee getEmployee() {
21         return employee;
22     }
23     public void setEmployee(Employee employee) {
24         this.employee = employee;
25     }
26     public String JavaDoc getName() {
27         return name;
28     }
29     public void setName(String JavaDoc name) {
30         this.name = name;
31     }
32     public Date JavaDoc getDob() {
33         return dob;
34     }
35     public void setDob(Date JavaDoc dob) {
36         this.dob = dob;
37     }
38 }
39
Popular Tags