KickJava   Java API By Example, From Geeks To Geeks.

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


1 // $Id: Employee.java,v 1.1 2005/02/24 20:08:04 steveebersole Exp $
2
package org.hibernate.test.subclassfilter;
3
4 import java.util.Set JavaDoc;
5 import java.util.HashSet JavaDoc;
6
7 /**
8  * Implementation of Employee.
9  *
10  * @author Steve Ebersole
11  */

12 public class Employee extends Person {
13     private String JavaDoc title;
14     private String JavaDoc department;
15     private Employee manager;
16     private Set JavaDoc minions = new HashSet JavaDoc();
17
18     public Employee() {
19     }
20
21     public Employee(String JavaDoc name) {
22         super( name );
23     }
24
25     public String JavaDoc getTitle() {
26         return title;
27     }
28
29     public void setTitle(String JavaDoc title) {
30         this.title = title;
31     }
32
33     public String JavaDoc getDepartment() {
34         return department;
35     }
36
37     public void setDepartment(String JavaDoc 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 JavaDoc getMinions() {
50         return minions;
51     }
52
53     public void setMinions(Set JavaDoc minions) {
54         this.minions = minions;
55     }
56 }
57
Popular Tags