1 package org.hibernate.test.ternary; 3 4 import java.util.Date ; 5 import java.util.HashMap ; 6 import java.util.HashSet ; 7 import java.util.Map ; 8 import java.util.Set ; 9 10 13 public class Employee { 14 private String name; 15 private Date hireDate; 16 private Map managerBySite = new HashMap (); 17 private Set underlings = new HashSet (); 18 19 Employee() {} 20 public Employee(String name) { 21 this.name=name; 22 } 23 public Map getManagerBySite() { 24 return managerBySite; 25 } 26 public void setManagerBySite(Map managerBySite) { 27 this.managerBySite = managerBySite; 28 } 29 public String getName() { 30 return name; 31 } 32 public void setName(String name) { 33 this.name = name; 34 } 35 public Set getUnderlings() { 36 return underlings; 37 } 38 public void setUnderlings(Set underlings) { 39 this.underlings = underlings; 40 } 41 public Date getHireDate() { 42 return hireDate; 43 } 44 public void setHireDate(Date hireDate) { 45 this.hireDate = hireDate; 46 } 47 } 48 | Popular Tags |