1 | public class Transaction {↵ | | 1 | public class MyEntity {↵
|
| | | 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 MyEntity other;↵
|
| | | 7 |
↵
|
6 | public String getDescription() {↵ | | 8 | public Long getId() {
↵
|
7 | return description;↵ | | 9 | return ↵
|
8 | }↵ | | |
|
9 | ↵ | | |
|
10 | public void setDescription(String description↵ | | 10 | id;↵
|
| | | 11 | }↵
|
|
11 | ) {↵ | | 12 | public void setId(Long id) {
↵
|
12 | this.description = description;↵ | | 13 | this.↵
|
13 | }↵ | | |
|
14 | ↵ | | 14 | id = id;↵
|
| | | 15 | }↵
|
| | | 16 |
↵
|
15 | public Long getId() {↵ | | 17 | public String getName() {
↵
|
16 | return id;↵ | | 18 | return ↵
|
17 | }↵ | | |
|
18 | ↵ | | 19 | name;↵
|
| | | 20 | }↵
|
| | | 21 |
↵
|
19 | public void setId(Long id) {↵ | | 22 | public void setName(String name) {
↵
|
20 | this.id = id;↵ | | 23 | this.↵
|
21 | }↵ | | |
|
22 | ↵ | | |
|
23 | public MonetoryAmount getValue↵ | | 24 | name = name;↵
|
| | | 25 | }↵
|
|
24 | () {↵ | | 26 | public MyEntity getOther() {
↵
|
25 | return value;↵ | | 27 | return ↵
|
26 | }↵ | | |
|
27 | ↵ | | 28 | other;↵
|
| | | 29 | }↵
|
| | | 30 |
↵
|
28 | public void setValue(MonetoryAmount value) {↵ | | 31 | public void setOther(MyEntity other) {
↵
|
29 | this.value = value;↵ | | 32 | this.other = other;
↵
|
30 | | | 33 |
|