1 | public class Thing {↵ | | 1 | public class ↵
|
2 | private Employee salesperson;↵ | | |
|
3 | private String comments↵ | | 2 | Circular {↵
|
| | | 3 | ↵
|
| | | 4 | private String id;↵
|
| | | 5 | private Class clazz;↵
|
| | | 6 | private Circular other;↵
|
4 | ;↵ | | 7 | private Object anyEntity;↵
|
| | | 8 | ↵
|
5 | /**↵ | | 9 | /**↵
|
6 | * @return Returns the salesperson.↵ | | 10 | * ↵
|
7 | */↵ | | |
|
8 | public Employee getSalesperson() {↵ | | |
|
9 | return salesperson↵ | | 11 | Constructor for Circular.↵
|
| | | 12 | */↵
|
| | | 13 | public Circular() {↵
|
10 | ;↵ | | 14 | super();↵
|
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 clazz.↵
|
| | | 20 | * @return Class↵
|
| | | 21 | */↵
|
| | | 22 | public Class getClazz() {↵
|
18 | ;↵ | | 23 | return clazz;↵
|
19 | }↵ | | 24 | }↵
|
20 | ↵ | | 25 | ↵
|
21 | /**↵ | | 26 | /**↵
|
22 | * @return Returns the comments.↵ | | 27 | * Returns the id.↵
|
| | | 28 | * @return String↵
|
23 | */↵ | | 29 | */↵
|
24 | public String getComments() {↵ | | 30 | public String getId() {↵
|
25 | return comments;↵ | | 31 | return id;↵
|
26 | }↵ | | 32 | }↵
|
27 | ↵ | | 33 | ↵
|
28 | /**↵ | | 34 | /**↵
|
29 | * @param comments The comments↵ | | 35 | * Sets the clazz.↵
|
30 | to set.↵ | | 36 | * @param clazz The clazz to set↵
|
31 | */↵ | | 37 | */↵
|
32 | public void setComments(String comments) {↵ | | 38 | public void setC↵
|
33 | this.comments = comments;↵ | | |
|
34 | }↵ | | |
|
|
35 | Lo↵ | | 39 | lazz(Class clazz) {↵
|
| | | 40 | this.clazz = clazz;↵
|
| | | 41 | }↵
|
| | | 42 | ↵
|
| | | 43 | /**↵
|
| | | 44 | * Sets the id.↵
|
| | | 45 | * @param id The id to set↵
|
| | | 46 | */↵
|
36 | ng id;↵ | | 47 | public void setId(String id↵
|
37 | String name;↵ | | |
|
| | | 48 | ) {↵
|
| | | 49 | this.id = id;↵
|
| | | 50 | }↵
|
| | | 51 | ↵
|
38 | /**↵ | | 52 | /**↵
|
39 | * @return Returns the ID.↵ | | 53 | * Returns the ↵
|
40 | */↵ | | |
|
41 | public Long getId↵ | | 54 | other.↵
|
| | | 55 | * @return Circular↵
|
| | | 56 | */↵
|
42 | () {↵ | | 57 | public Circular getOther() {↵
|
43 | return id;↵ | | 58 | return other;↵
|
44 | }↵ | | 59 | }↵
|
45 | ↵ | | 60 | ↵
|
46 | /**↵ | | 61 | /**↵
|
47 | * @param id The ID↵ | | 62 | * Sets the other.↵
|
48 | to set.↵ | | 63 | * @param other The other to set↵
|
49 | */↵ | | 64 | */↵
|
50 | public void setId(Long id) {↵ | | 65 | public void set↵
|
51 | this.id = id↵ | | 66 | Other(Circular other) {↵
|
52 | ;↵ | | 67 | this.other = other;↵
|
53 | }↵ | | 68 | }↵
|
54 | ↵ | | 69 | ↵
|
55 | /**↵ | | 70 | /**↵
|
56 | * @return Returns the name.↵ | | 71 | * Returns the ↵
|
57 | */↵ | | |
|
58 | public String getName↵ | | 72 | anyEntity.↵
|
| | | 73 | * @return Object↵
|
| | | 74 | */↵
|
59 | () {↵ | | 75 | public Object getAnyEntity() {↵
|
60 | return name;↵ | | 76 | return anyEntity;↵
|
61 | }↵ | | 77 | }↵
|
62 | ↵ | | 78 | ↵
|
63 | /**↵ | | 79 | /**↵
|
64 | * @param name The name↵ | | 80 | * Sets the anyEntity.↵
|
65 | to set.↵ | | 81 | * @param anyEntity The anyEntity to set↵
|
66 | */↵ | | 82 | */↵
|
67 | public void setName(String name) {↵ | | 83 | public void setAnyEntity(Object anyEntity) {↵
|
68 | this.name = name | | 84 | this.anyEntity = anyEntity
|