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