1 | public class Version {↵ | | 1 | public class Thing {↵
|
|
2 | long id;↵ | | 2 | private long id;↵
|
3 | String name;↵ | | 3 | ↵
|
4 | String↵ | | 4 | private String description;↵
|
| | | 5 | private Being owner;↵
|
| | | 6 | /**↵
|
5 | description;↵ | | 7 | * @return Returns the description.↵
|
6 | ↵ | | 8 | */↵
|
7 | public long getId() {↵ | | 9 | public String getDescription() {↵
|
8 | return id;↵ | | 10 | return ↵
|
9 | }↵ | | |
|
10 | public void setId(long id) {↵ | | |
|
11 | this.id = id;↵ | | |
|
12 | }↵ | | 11 | description;↵
|
| | | 12 | }↵
|
| | | 13 | /**↵
|
| | | 14 | * @param description The description to set.↵
|
| | | 15 | */↵
|
| | | 16 | public void setDescription(String description) {↵
|
| | | 17 | this.description = description;↵
|
| | | 18 | }↵
|
| | | 19 | /**↵
|
| | | 20 | * @return Returns the id.↵
|
| | | 21 | */↵
|
13 | public String getName() {↵ | | 22 | public long getId() {↵
|
14 | return name;↵ | | 23 | return id;↵
|
15 | }↵ | | 24 | }↵
|
16 | ↵ | | 25 | /**↵
|
| | | 26 | * @param id The id to set.↵
|
| | | 27 | */↵
|
17 | public void setName(String name) {↵ | | 28 | public void set↵
|
18 | this.name = name;↵ | | |
|
19 | }↵ | | |
|
20 | ↵ | | 29 | Id(long id) {↵
|
| | | 30 | this.id = id;↵
|
| | | 31 | }↵
|
| | | 32 | /**↵
|
| | | 33 | * @return Returns the owner.↵
|
| | | 34 | */↵
|
21 | public String getDescription() {↵ | | 35 | public Being getOwner() {↵
|
22 | return description;↵ | | 36 | return ↵
|
23 | }↵ | | |
|
24 | ↵ | | |
|
25 | public void setDescription(String description) {↵ | | |
|
26 | this.description = description | | 37 | owner;↵
|
| | | 38 | }↵
|
| | | 39 | /**↵
|
| | | 40 | * @param owner The owner to set.↵
|
| | | 41 | */↵
|
| | | 42 | public void setOwner(Being owner) {↵
|
| | | 43 | this.owner = owner
|