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