1 | public class A {↵ | | 1 | public class Object2 {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String dummy;↵
|
4 | private E forward;↵ | | 4 | private ↵
|
5 | ↵ | | |
|
6 | /**↵ | | |
|
7 | * Returns the id.↵ | | |
|
8 | * @return Long↵ | | |
|
9 | */↵ | | |
|
10 | public Long getId() {↵ | | |
|
11 | return id;↵ | | |
|
12 | }↵ | | |
|
13 | ↵ | | |
|
14 | /**↵ | | |
|
15 | * Returns the name.↵ | | |
|
16 | * @return String↵ | | |
|
17 | */↵ | | 5 | MainObject belongsToMainObj;↵
|
|
18 | public String getName() {↵ | | 6 | public Long getId() {↵
|
19 | return name;↵ | | 7 | return ↵
|
20 | }↵ | | |
|
21 | ↵ | | |
|
22 | /**↵ | | |
|
23 | * Sets the id.↵ | | 8 | id;↵
|
24 | * @param id The id to set↵ | | 9 | ↵
|
25 | */↵ | | 10 | }↵
|
|
26 | public void setId(Long id) {↵ | | 11 | public void setId(Long l) {↵
|
27 | this.id = id;↵ | | 12 | this.id = l;↵
|
28 | }↵ | | 13 | }↵
|
29 | ↵ | | 14 | ↵
|
30 | /**↵ | | 15 | ↵
|
31 | * Sets the name.↵ | | |
|
32 | * @param name The name to set↵ | | |
|
33 | */↵ | | 16 | public String getDummy() {↵
|
| | | 17 | return dummy;↵
|
| | | 18 | }↵
|
|
34 | public void setName(String name) {↵ | | 19 | public void setDummy(String ↵
|
35 | this.name = name↵ | | 20 | string) {↵
|
36 | ;↵ | | 21 | dummy = string;↵
|
37 | }↵ | | 22 | }↵
|
38 | ↵ | | |
|
39 | public E getForward() {↵ | | 23 | public ↵
|
40 | return forward;↵ | | |
|
41 | }↵ | | |
|
|
42 | public void setForward(E e) {↵ | | |
|
43 | forward = e↵ | | 24 | MainObject getBelongsToMainObj() {↵
|
| | | 25 | return belongsToMainObj;↵
|
| | | 26 | }↵
|
|
| | | 27 | public void setBelongsToMainObj(MainObject object) {↵
|
44 | ;↵ | | 28 | belongsToMainObj = object;↵
|
45 | | | 29 |
|