KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > filter > Salesperson


1 // $Id: Salesperson.java,v 1.2 2004/08/28 02:29:05 steveebersole Exp $
2
package org.hibernate.test.filter;
3
4 import java.util.Set JavaDoc;
5 import java.util.HashSet JavaDoc;
6 import java.util.Date JavaDoc;
7
8 /**
9  * Implementation of Salesperson.
10  *
11  * @author Steve
12  */

13 public class Salesperson {
14     private Long JavaDoc id;
15     private String JavaDoc name;
16     private String JavaDoc region;
17     private Date JavaDoc hireDate;
18     private Department department;
19     private Set JavaDoc orders = new HashSet JavaDoc();
20
21     public Long JavaDoc getId() {
22         return id;
23     }
24
25     public void setId(Long JavaDoc id) {
26         this.id = id;
27     }
28
29     public String JavaDoc getName() {
30         return name;
31     }
32
33     public void setName(String JavaDoc name) {
34         this.name = name;
35     }
36
37     public String JavaDoc getRegion() {
38         return region;
39     }
40
41     public void setRegion(String JavaDoc region) {
42         this.region = region;
43     }
44
45     public Set JavaDoc getOrders() {
46         return orders;
47     }
48
49     public void setOrders(Set JavaDoc orders) {
50         this.orders = orders;
51     }
52
53     public Date JavaDoc getHireDate() {
54         return hireDate;
55     }
56
57     public void setHireDate(Date JavaDoc 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