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

Quick Search    Search Deep

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


1   package org.hibernate.test.manytomany.ordered;
2   
3   import java.io.Serializable;
4   import java.util.Set;
5   import java.util.HashSet;
6   
7   public class User implements Serializable {
8   
9     private Long id;
10    private String org;
11    private String name;
12    private Set groups = new HashSet();
13  
14    public User() {
15    }
16  
17    public User(String name, String org) {
18      this.org = org;
19      this.name = name;
20    }
21  
22    public Long getId() {
23      return id;
24    }
25  
26    public void setId(Long id) {
27      this.id = id;
28    }
29  
30    public String getName() {
31      return name;
32    }
33  
34    public void setName(String name) {
35      this.name = name;
36    }
37  
38    public String getOrg() {
39      return org;
40    }
41  
42    public void setOrg(String org) {
43      this.org = org;
44    }
45  
46    public Set getGroups() {
47      return groups;
48    }
49  
50    public void setGroups(Set groups) {
51      this.groups = groups;
52    }
53  
54  }