KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > joinfetch > User


1 //$Id: User.java,v 1.1 2005/06/17 05:23:15 oneovthafew Exp $
2
package org.hibernate.test.joinfetch;
3
4 import java.util.HashMap JavaDoc;
5 import java.util.Map JavaDoc;
6
7 public class User {
8     private String JavaDoc name;
9     private Map JavaDoc groups = new HashMap JavaDoc();
10
11     public User(String JavaDoc name) {
12         this.name = name;
13     }
14
15     User() {}
16
17     public Map JavaDoc getGroups() {
18         return groups;
19     }
20
21     public void setGroups(Map JavaDoc groups) {
22         this.groups = groups;
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 }
34
Popular Tags