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