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