1 package org.hibernate.test.subclassfilter; 3 4 import java.util.Set ; 5 import java.util.HashSet ; 6 7 12 public class Employee extends Person { 13 private String title; 14 private String department; 15 private Employee manager; 16 private Set minions = new HashSet (); 17 18 public Employee() { 19 } 20 21 public Employee(String name) { 22 super( name ); 23 } 24 25 public String getTitle() { 26 return title; 27 } 28 29 public void setTitle(String title) { 30 this.title = title; 31 } 32 33 public String getDepartment() { 34 return department; 35 } 36 37 public void setDepartment(String department) { 38 this.department = department; 39 } 40 41 public Employee getManager() { 42 return manager; 43 } 44 45 public void setManager(Employee manager) { 46 this.manager = manager; 47 } 48 49 public Set getMinions() { 50 return minions; 51 } 52 53 public void setMinions(Set minions) { 54 this.minions = minions; 55 } 56 } 57 | Popular Tags |