1 | public class Account implements Serializable {↵ | | 1 | public class ↵
|
2 | private String accountI↵ | | 2 | Department {↵
|
3 | d;↵ | | 3 | private Long id;↵
|
4 | private Person user;↵ | | 4 | private ↵
|
5 | private char type;↵ | | |
|
6 | /**↵ | | |
|
7 | * @return Returns the user.↵ | | |
|
8 | */↵ | | 5 | String name;↵
|
| | | 6 | private Set salespersons = new HashSet();↵
|
|
9 | public Person getUser() {↵ | | 7 | public Long getId() {↵
|
10 | return user;↵ | | 8 | return id;↵
|
11 | }↵ | | 9 | }↵
|
12 | /**↵ | | |
|
13 | * @param user The user to set.↵ | | |
|
14 | */↵ | | |
|
15 | public void setUser(Person user) {↵ | | 10 | public void set↵
|
16 | this.user = user;↵ | | |
|
17 | }↵ | | |
|
18 | /**↵ | | |
|
19 | * @return Returns the accountId.↵ | | |
|
20 | */↵ | | 11 | Id(Long id) {↵
|
| | | 12 | this.id = id;↵
|
| | | 13 | }↵
|
|
21 | public String getAccountId() {↵ | | 14 | public String getName() {↵
|
22 | return accountId;↵ | | 15 | return ↵
|
23 | }↵ | | |
|
24 | /**↵ | | |
|
25 | * @param accountId The accountId to set.↵ | | |
|
26 | */↵ | | 16 | name;↵
|
| | | 17 | }↵
|
|
27 | public void setAccountId(String accountId) {↵ | | 18 | public void setName(String name) {↵
|
28 | this.accountId = accountId;↵ | | 19 | this.↵
|
29 | }↵ | | |
|
30 | /**↵ | | |
|
31 | * @return Returns the type.↵ | | |
|
32 | */↵ | | |
|
33 | public char getType() {↵ | | |
|
34 | return type;↵ | | |
|
35 | }↵ | | |
|
36 | /**↵ | | |
|
37 | * @param type The type to set.↵ | | |
|
38 | */↵ | | |
|
39 | public void setType(char type) {↵ | | |
|
40 | this.type = type | | 20 | name = name;↵
|
| | | 21 | }↵
|
|
| | | 22 | public Set getSalespersons() {↵
|
| | | 23 | return salespersons;↵
|
| | | 24 | }↵
|
|
| | | 25 | public void setSalespersons(Set salespersons) {↵
|
| | | 26 | this.salespersons = salespersons
|