1 package org.hibernate.test.filter; 3 4 import java.util.Set ; 5 import java.util.HashSet ; 6 import java.util.Date ; 7 8 13 public class Salesperson { 14 private Long id; 15 private String name; 16 private String region; 17 private Date hireDate; 18 private Department department; 19 private Set orders = new HashSet (); 20 21 public Long getId() { 22 return id; 23 } 24 25 public void setId(Long id) { 26 this.id = id; 27 } 28 29 public String getName() { 30 return name; 31 } 32 33 public void setName(String name) { 34 this.name = name; 35 } 36 37 public String getRegion() { 38 return region; 39 } 40 41 public void setRegion(String region) { 42 this.region = region; 43 } 44 45 public Set getOrders() { 46 return orders; 47 } 48 49 public void setOrders(Set orders) { 50 this.orders = orders; 51 } 52 53 public Date getHireDate() { 54 return hireDate; 55 } 56 57 public void setHireDate(Date hireDate) { 58 this.hireDate = hireDate; 59 } 60 61 public Department getDepartment() { 62 return department; 63 } 64 65 public void setDepartment(Department department) { 66 this.department = department; 67 } 68 } 69 | Popular Tags |