1 | public class Transaction {↵ | | 1 | public class Account {↵
|
| | | 2 |
↵
|
2 | private Long id;↵ | | 3 | private String accountId;
↵
|
3 | private String description;↵ | | 4 | private ↵
|
4 | private MonetoryAmount value;↵ | | |
|
5 | ↵ | | 5 | Person user;↵
|
| | | 6 | private char type;↵
|
| | | 7 | /**↵
|
| | | 8 | * @return Returns the user.↵
|
| | | 9 | */
↵
|
6 | public String getDescription() {↵ | | 10 | public Person getUser() {
↵
|
7 | return description;↵ | | 11 | return user;
↵
|
8 | }↵ | | 12 | }
↵
|
9 | ↵ | | 13 | ↵
|
10 | public void setDescription(String description↵ | | 14 | /**↵
|
| | | 15 | * @param user The user to set.↵
|
| | | 16 | */↵
|
11 | ) {↵ | | 17 | public void setUser(Person user) {
↵
|
12 | this.description = description;↵ | | 18 | this.↵
|
13 | }↵ | | |
|
14 | ↵ | | 19 | user = user;↵
|
| | | 20 | }↵
|
| | | 21 | /**↵
|
| | | 22 | * @return Returns the accountId.↵
|
| | | 23 | */
↵
|
15 | public Long getId() {↵ | | 24 | public String getAccountId() {
↵
|
16 | return id;↵ | | 25 | return accountId;
↵
|
17 | }↵ | | 26 | }
↵
|
18 | ↵ | | 27 | ↵
|
19 | public void setId(Long i↵ | | 28 | /**↵
|
| | | 29 | * @param accountId The accountId to set.↵
|
| | | 30 | */↵
|
20 | d) {↵ | | 31 | public void setAccountId(String accountId) {
↵
|
21 | this.id = id;↵ | | 32 | this.accountId = accountId;
↵
|
22 | }↵ | | 33 | }
↵
|
23 | ↵ | | 34 | ↵
|
24 | public MonetoryAmount getValu↵ | | 35 | /**↵
|
| | | 36 | * @return Returns the type.↵
|
| | | 37 | */↵
|
25 | e() {↵ | | 38 | public char getType() {
↵
|
26 | return value;↵ | | 39 | return type;
↵
|
27 | }↵ | | 40 | }
↵
|
28 | ↵ | | 41 | ↵
|
29 | public void setValue(MonetoryAmount valu↵ | | 42 | /**↵
|
| | | 43 | * @param type The type to set.↵
|
| | | 44 | */↵
|
30 | e) {↵ | | 45 | public void setType(char type) {
↵
|
31 | this.value = value | | 46 | this.type = type
|