KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Employee.java,v 1.1 2004/12/19 22:01:24 maxcsaucdk Exp $
2
package org.hibernate.test.extendshbm;
3
4 import java.math.BigDecimal JavaDoc;
5
6 /**
7  * @author Gavin King
8  */

9 public class Employee extends Person {
10     private String JavaDoc title;
11     private BigDecimal JavaDoc salary;
12     private Employee manager;
13     /**
14      * @return Returns the title.
15      */

16     public String JavaDoc getTitle() {
17         return title;
18     }
19     /**
20      * @param title The title to set.
21      */

22     public void setTitle(String JavaDoc title) {
23         this.title = title;
24     }
25     /**
26      * @return Returns the manager.
27      */

28     public Employee getManager() {
29         return manager;
30     }
31     /**
32      * @param manager The manager to set.
33      */

34     public void setManager(Employee manager) {
35         this.manager = manager;
36     }
37     /**
38      * @return Returns the salary.
39      */

40     public BigDecimal JavaDoc getSalary() {
41         return salary;
42     }
43     /**
44      * @param salary The salary to set.
45      */

46     public void setSalary(BigDecimal JavaDoc salary) {
47         this.salary = salary;
48     }
49 }
50
Popular Tags