KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Employee.java,v 1.3 2005/02/12 07:27:30 steveebersole Exp $
2
package org.hibernate.test.ops;
3
4 import java.util.Collection JavaDoc;
5 import java.io.Serializable JavaDoc;
6
7
8 /**
9  * Employee in an Employer-Employee relationship
10  *
11  * @author Emmanuel Bernard
12  */

13
14 public class Employee implements Serializable JavaDoc {
15     private Integer JavaDoc id;
16     private Collection JavaDoc employers;
17
18
19     public Integer JavaDoc getId() {
20         return id;
21     }
22
23     public void setId(Integer JavaDoc integer) {
24         id = integer;
25     }
26     
27     
28     public Collection JavaDoc getEmployers() {
29         return employers;
30     }
31     
32     public void setEmployers(Collection JavaDoc employers) {
33         this.employers = employers;
34     }
35 }
36
Popular Tags