1 package org.hibernate.test.unconstrained; 3 4 7 public class Person { 8 9 private String name; 10 private String employeeId; 11 private Employee employee; 12 13 public Person() {} 14 public Person(String 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 getEmployeeId() { 27 return employeeId; 28 } 29 30 public void setEmployeeId(String employeeId) { 31 this.employeeId = employeeId; 32 } 33 34 public String getName() { 35 return name; 36 } 37 38 public void setName(String name) { 39 this.name = name; 40 } 41 42 43 } 44 | Popular Tags |