1 | public class Point implements Serializable {↵ | | 1 | public class ↵
|
2 | private BigDecimal x;↵ | | |
|
3 | private BigDecimal y↵ | | 2 | Thing {↵
|
| | | 3 | private String description;↵
|
4 | ;↵ | | 4 | private Person person;↵
|
5 | private String description;↵ | | 5 | private ↵
|
6 | private Object row;↵ | | |
|
|
7 | Point() {}↵ | | |
|
8 | ↵ | | |
|
9 | public Point(BigDecimal x, BigDecimal y) {↵ | | |
|
10 | this.x = x;↵ | | |
|
11 | this.y = y↵ | | 6 | int version;↵
|
12 | ;↵ | | 7 | private String longDescription;↵
|
13 | }↵ | | 8 | ↵
|
|
14 | public BigDecimal getX() {↵ | | 9 | public int getVersion() {↵
|
15 | return x;↵ | | 10 | return ↵
|
16 | }↵ | | |
|
|
17 | void setX(BigDecimal x) {↵ | | |
|
18 | this.x = x;↵ | | |
|
19 | }↵ | | |
|
|
20 | public BigDecimal getY() {↵ | | |
|
21 | return y;↵ | | |
|
22 | }↵ | | |
|
|
23 | void setY(BigDecimal y) {↵ | | |
|
24 | this.y = y↵ | | 11 | version;↵
|
| | | 12 | }↵
|
| | | 13 | public void setVersion(int version) {↵
|
| | | 14 | this.version = version;↵
|
| | | 15 | }↵
|
| | | 16 | Thing() {}↵
|
| | | 17 | public Thing(String description, Person person) {↵
|
| | | 18 | this.description = description;↵
|
| | | 19 | this.person = person;↵
|
25 | ;↵ | | 20 | person.getThings().add(this);↵
|
26 | }↵ | | 21 | }↵
|
|
27 | public String getDescription() {↵ | | 22 | public String getDescription() {↵
|
28 | return description;↵ | | 23 | return description;↵
|
29 | }↵ | | 24 | }↵
|
|
30 | public void setDescription(String description) {↵ | | 25 | public void setDescription(String description) {↵
|
31 | this.description = description;↵ | | 26 | this.description = description;↵
|
32 | }↵ | | 27 | }↵
|
|
33 | public Object getRow() {↵ | | |
|
34 | return row↵ | | 28 | public Person getPerson() {↵
|
| | | 29 | return person;↵
|
| | | 30 | }↵
|
| | | 31 | public void setPerson(Person person) {↵
|
| | | 32 | this.person = person;↵
|
| | | 33 | }↵
|
| | | 34 | public String getLongDescription() {↵
|
35 | ;↵ | | 35 | return longDescription;↵
|
36 | }↵ | | 36 | }↵
|
|
37 | public void setRow(Object row) {↵ | | 37 | public void set↵
|
38 | this.row = row↵ | | 38 | LongDescription(String longDescription) {↵
|
39 | ;↵ | | 39 | this.longDescription = longDescription;↵
|
40 | | | 40 |
|