KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > ternary > Employee


1 //$Id: Employee.java,v 1.3 2005/02/12 07:27:31 steveebersole Exp $
2
package org.hibernate.test.ternary;
3
4 import java.util.Date JavaDoc;
5 import java.util.HashMap JavaDoc;
6 import java.util.HashSet JavaDoc;
7 import java.util.Map JavaDoc;
8 import java.util.Set JavaDoc;
9
10 /**
11  * @author Gavin King
12  */

13 public class Employee {
14     private String JavaDoc name;
15     private Date JavaDoc hireDate;
16     private Map JavaDoc managerBySite = new HashMap JavaDoc();
17     private Set JavaDoc underlings = new HashSet JavaDoc();
18     
19     Employee() {}
20     public Employee(String JavaDoc name) {
21         this.name=name;
22     }
23     public Map JavaDoc getManagerBySite() {
24         return managerBySite;
25     }
26     public void setManagerBySite(Map JavaDoc managerBySite) {
27         this.managerBySite = managerBySite;
28     }
29     public String JavaDoc getName() {
30         return name;
31     }
32     public void setName(String JavaDoc name) {
33         this.name = name;
34     }
35     public Set JavaDoc getUnderlings() {
36         return underlings;
37     }
38     public void setUnderlings(Set JavaDoc underlings) {
39         this.underlings = underlings;
40     }
41     public Date JavaDoc getHireDate() {
42         return hireDate;
43     }
44     public void setHireDate(Date JavaDoc hireDate) {
45         this.hireDate = hireDate;
46     }
47 }
48
Popular Tags