1 package org.hibernate.test.onetoonelink; 3 4 import java.util.Date ; 5 6 9 public class Person { 10 private String name; 11 private Date 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 getName() { 27 return name; 28 } 29 public void setName(String name) { 30 this.name = name; 31 } 32 public Date getDob() { 33 return dob; 34 } 35 public void setDob(Date dob) { 36 this.dob = dob; 37 } 38 } 39 | Popular Tags |