KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Employer.java,v 1.2 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  * Employer in a employer-Employee relationship
10  *
11  * @author Emmanuel Bernard
12  */

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