1 | public class Thing {↵ | | 1 | public class ↵
|
2 | private Employee salesperson↵ | | 2 | Several implements Serializable {↵
|
| | | 3 | private String id;↵
|
| | | 4 | private String prop;↵
|
3 | ;↵ | | 5 | private Single single;↵
|
4 | private String comments;↵ | | 6 | private String ↵
|
| | | 7 | string;↵
|
5 | /**↵ | | 8 | /**↵
|
6 | * @return Returns the salesperson.↵ | | 9 | * Returns the ↵
|
7 | */↵ | | |
|
8 | public Employee getSalesperson↵ | | 10 | id.↵
|
| | | 11 | * @return String↵
|
| | | 12 | */↵
|
9 | () {↵ | | 13 | public String getId() {↵
|
10 | return salesperson;↵ | | 14 | return id;↵
|
11 | }↵ | | 15 | }↵
|
12 | ↵ | | 16 | ↵
|
13 | /**↵ | | 17 | /**↵
|
14 | * @param salesperson The salesperson to set.↵ | | 18 | * ↵
|
15 | */↵ | | |
|
16 | public void setSalesperson(Employee salesperson) {↵ | | |
|
17 | this.salesperson = salesperson↵ | | 19 | Returns the prop.↵
|
| | | 20 | * @return String↵
|
| | | 21 | */↵
|
| | | 22 | public String getProp() {↵
|
18 | ;↵ | | 23 | return prop;↵
|
19 | }↵ | | 24 | }↵
|
20 | ↵ | | 25 | ↵
|
21 | /**↵ | | 26 | /**↵
|
22 | * @return Returns the comments.↵ | | 27 | * Returns the single.↵
|
| | | 28 | * @return Single↵
|
23 | */↵ | | 29 | */↵
|
24 | public String getComments() {↵ | | 30 | public Single getSingle() {↵
|
25 | return comments;↵ | | 31 | return single;↵
|
26 | }↵ | | 32 | }↵
|
27 | ↵ | | 33 | ↵
|
28 | /**↵ | | 34 | /**↵
|
29 | * @param comments The comments↵ | | 35 | * Sets the id.↵
|
30 | to set.↵ | | 36 | * @param id The id to set↵
|
31 | */↵ | | 37 | */↵
|
32 | public void setComments(String comments) {↵ | | 38 | public void set↵
|
33 | this.comments = comments↵ | | 39 | Id(String id) {↵
|
34 | ;↵ | | 40 | this.id = id;↵
|
35 | }↵ | | 41 | }↵
|
| | | 42 | ↵
|
36 | Long id;↵ | | 43 | ↵
|
37 | String name;↵ | | |
|
|
38 | /**↵ | | |
|
39 | * @return Returns the ID.↵ | | |
|
40 | */↵ | | |
|
41 | public Long getId() {↵ | | |
|
42 | return id↵ | | 44 | /**↵
|
| | | 45 | * Sets the prop.↵
|
| | | 46 | * @param prop The prop to set↵
|
| | | 47 | */↵
|
| | | 48 | public void setProp(String prop) {↵
|
43 | ;↵ | | 49 | this.prop = prop;↵
|
44 | }↵ | | 50 | }↵
|
45 | ↵ | | 51 | ↵
|
46 | /**↵ | | 52 | /**↵
|
47 | * @param id The ID↵ | | 53 | * Sets the single.↵
|
48 | to set.↵ | | 54 | * @param single The single to set↵
|
49 | */↵ | | 55 | */↵
|
50 | public void setId(Long id) {↵ | | 56 | public void setSingle(Single single) {↵
|
51 | this.id = id;↵ | | 57 | this.single = single;↵
|
52 | }↵ | | 58 | }↵
|
53 | ↵ | | 59 | ↵
|
54 | /**↵ | | 60 | /**↵
|
55 | * @return Returns the name.↵ | | 61 | * Returns the string.↵
|
| | | 62 | * @return String↵
|
56 | */↵ | | 63 | */↵
|
57 | public String getName() {↵ | | 64 | public String getString() {↵
|
58 | return name;↵ | | 65 | return string;↵
|
59 | }↵ | | 66 | }↵
|
60 | ↵ | | 67 | ↵
|
61 | /**↵ | | 68 | /**↵
|
62 | ↵ | | 69 | * Sets the string.↵
|
63 | * @param name The name to set.↵ | | 70 | * @param string The string to set↵
|
64 | */↵ | | 71 | */↵
|
65 | public void setName(String name) {↵ | | 72 | public void setString(String string) {↵
|
66 | this.name = name | | 73 | this.string = string
|