1 | public class Transaction {↵ | | 1 | public class Person {↵
|
| | | 2 |
↵
|
2 | private Long id;↵ | | 3 | private Long id;
↵
|
3 | private String description;↵ | | 4 | private String ↵
|
4 | private MonetoryAmount value;↵ | | |
|
5 | ↵ | | 5 | name;↵
|
| | | 6 | private BankAccount bankAccount;↵
|
|
| | | 7 | /**↵
|
| | | 8 | * @return Returns the id.↵
|
| | | 9 | */
↵
|
6 | public String getDescription() {↵ | | 10 | public Long getId() {
↵
|
7 | return description;↵ | | 11 | return id;
↵
|
8 | }↵ | | 12 | }
↵
|
9 | ↵ | | 13 | /**↵
|
| | | 14 | * @param id The id to set.↵
|
| | | 15 | */
↵
|
10 | public void setDescription(String description) {↵ | | 16 | public void setId(Long id) {
↵
|
11 | this.description = description;↵ | | 17 | this.id = id;
↵
|
12 | }↵ | | 18 | }
↵
|
13 | ↵ | | 19 | /**↵
|
| | | 20 | * @return Returns the name.↵
|
| | | 21 | */
↵
|
14 | public Long getId() {↵ | | 22 | public String getName() {
↵
|
15 | return id;↵ | | 23 | return name;
↵
|
16 | }↵ | | 24 | }
↵
|
17 | ↵ | | 25 | /**↵
|
| | | 26 | * @param name The name to set.↵
|
| | | 27 | */
↵
|
18 | public void setId(Long id) {↵ | | 28 | public void setName(String name) {
↵
|
19 | this.id = id;↵ | | 29 | this.↵
|
20 | }↵ | | |
|
21 | ↵ | | |
|
22 | public MonetoryAmount getValue↵ | | 30 | name = name;↵
|
| | | 31 | }↵
|
|
23 | () {↵ | | 32 | public BankAccount getBankAccount() {
↵
|
24 | return value;↵ | | 33 | return bankAccount;
↵
|
25 | }↵ | | 34 | }↵
|
26 | ↵ | | 35 |
↵
|
27 | public void setValue(MonetoryAmount value) {↵ | | 36 | public void setBankAccount(BankAccount bankAccount) {
↵
|
28 | this.value = value | | 37 | this.bankAccount = bankAccount
|