KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > filter > Department


1 // $Id: Department.java,v 1.1 2004/08/28 02:29:05 steveebersole Exp $
2
package org.hibernate.test.filter;
3
4 import java.util.Set JavaDoc;
5 import java.util.HashSet JavaDoc;
6
7 /**
8  * Implementation of Department.
9  *
10  * @author Steve
11  */

12 public class Department {
13     private Long JavaDoc id;
14     private String JavaDoc name;
15     private Set JavaDoc salespersons = new HashSet JavaDoc();
16
17     public Long JavaDoc getId() {
18         return id;
19     }
20
21     public void setId(Long JavaDoc id) {
22         this.id = id;
23     }
24
25     public String JavaDoc getName() {
26         return name;
27     }
28
29     public void setName(String JavaDoc name) {
30         this.name = name;
31     }
32
33     public Set JavaDoc getSalespersons() {
34         return salespersons;
35     }
36
37     public void setSalespersons(Set JavaDoc salespersons) {
38         this.salespersons = salespersons;
39     }
40 }
41
Popular Tags