KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > sql > Organization


1 //$Id: Organization.java,v 1.6 2005/07/19 18:21:35 oneovthafew Exp $
2
package org.hibernate.test.sql;
3
4 import java.util.Collection JavaDoc;
5 import java.util.HashSet JavaDoc;
6
7 /**
8  * @author Gavin King
9  */

10 public class Organization {
11     private long id;
12     private String JavaDoc name;
13     private Collection JavaDoc employments;
14
15     public Organization(String JavaDoc name) {
16         this.name = name;
17         employments = new HashSet JavaDoc();
18     }
19
20     public Organization() {}
21
22     /**
23      * @return Returns the employments.
24      */

25     public Collection JavaDoc getEmployments() {
26         return employments;
27     }
28     /**
29      * @param employments The employments to set.
30      */

31     public void setEmployments(Collection JavaDoc employments) {
32         this.employments = employments;
33     }
34     /**
35      * @return Returns the id.
36      */

37     public long getId() {
38         return id;
39     }
40     /**
41      * @param id The id to set.
42      */

43     public void setId(long id) {
44         this.id = id;
45     }
46     /**
47      * @return Returns the name.
48      */

49     public String JavaDoc getName() {
50         return name;
51     }
52     /**
53      * @param name The name to set.
54      */

55     public void setName(String JavaDoc name) {
56         this.name = name;
57     }
58     
59 }
60
Popular Tags