KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Employee.java,v 1.2 2005/07/09 20:04:44 epbernard Exp $
2
package org.hibernate.ejb.test.ops;
3
4 import java.io.Serializable JavaDoc;
5 import java.util.Collection 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