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