1 | public class Contract implements Serializable {↵ | | 1 | public class User implements Serializable {↵
|
2 | ↵ | | |
|
| | | 2 |
↵
|
3 | private long id;↵ | | 3 | private Long id;
↵
|
4 | private String customerName;↵ | | 4 | private String org;
↵
|
5 | private String type;↵ | | 5 | private String name;
↵
|
6 | private List variations;↵ | | 6 | private ↵
|
|
7 | public Contract() {↵ | | |
|
8 | sup↵ | | 7 | Set groups = new HashSet();↵
|
|
9 | er();↵ | | 8 | public User()↵
|
10 | }↵ | | |
|
|
11 | public Contract(String customerN↵ | | 9 | {↵
|
| | | 10 | }↵
|
|
12 | ame, String type) {↵ | | 11 | public User(String name, String org) {
↵
|
13 | this.customerName = customerName;↵ | | 12 | this.org = org;
↵
|
14 | this.type = type;↵ | | 13 | this.name = ↵
|
15 | variations = new ArrayList();↵ | | |
|
16 | }↵ | | |
|
| | | 14 | name;↵
|
| | | 15 | }↵
|
| | | 16 |
↵
|
17 | public String getCustomerName() {↵ | | 17 | public Long getId() {
↵
|
18 | return customerName;↵ | | 18 | return ↵
|
19 | }↵ | | |
|
|
20 | public void setCustomerName(String customerName↵ | | 19 | id;↵
|
| | | 20 | }↵
|
|
21 | ) {↵ | | 21 | public void setId(Long id) {
↵
|
22 | this.customerName = customerName;↵ | | 22 | this.↵
|
23 | }↵ | | |
|
| | | 23 | id = id;↵
|
| | | 24 | }↵
|
| | | 25 |
↵
|
24 | public long getId() {↵ | | 26 | public String getName() {
↵
|
25 | return id;↵ | | 27 | return ↵
|
26 | }↵ | | |
|
| | | 28 | name;↵
|
| | | 29 | }↵
|
| | | 30 |
↵
|
27 | public void setId(long id) {↵ | | 31 | public void setName(String name) {
↵
|
28 | this.id = id;↵ | | 32 | this.↵
|
29 | }↵ | | |
|
| | | 33 | name = name;↵
|
| | | 34 | }↵
|
| | | 35 |
↵
|
30 | public String getType() {↵ | | 36 | public String getOrg() {
↵
|
31 | return type;↵ | | 37 | return ↵
|
32 | }↵ | | |
|
| | | 38 | org;↵
|
| | | 39 | }↵
|
| | | 40 |
↵
|
33 | public void setType(String type) {↵ | | 41 | public void setOrg(String org) {
↵
|
34 | this.type = type;↵ | | 42 | this.↵
|
35 | }↵ | | |
|
| | | 43 | org = org;↵
|
| | | 44 | }↵
|
| | | 45 |
↵
|
36 | public List getVariations() {↵ | | 46 | public Set getGroups() {
↵
|
37 | return variations;↵ | | 47 | return groups;
↵
|
38 | }↵ | | 48 | }↵
|
|
| | | 49 |
↵
|
39 | public void setVariations(List variations) {↵ | | 50 | public void setGroups(Set groups) {
↵
|
40 | this.variations = variations;↵ | | 51 | this.groups = groups;
↵
|
41 | | | 52 |
|