Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/hibernate/test/manytomany/User.java


1   //$Id: User.java 7085 2005-06-08 17:59:47Z oneovthafew $
2   package org.hibernate.test.manytomany;
3   
4   import java.io.Serializable;
5   import java.util.HashSet;
6   import java.util.Set;
7   
8   public class User implements Serializable {
9     
10    private String org;
11    private String name;
12    private Set groups = new HashSet();
13  
14    public User(String name, String org) {
15      this.org = org;
16      this.name = name;
17    }
18  
19    public User() {
20    }
21  
22    public String getName() {
23      return name;
24    }
25  
26    public void setName(String name) {
27      this.name = name;
28    }
29  
30    public String getOrg() {
31      return org;
32    }
33  
34    public void setOrg(String org) {
35      this.org = org;
36    }
37  
38    public Set getGroups() {
39      return groups;
40    }
41  
42    public void setGroups(Set groups) {
43      this.groups = groups;
44    }
45  
46  }