1 | public class ParentInfoAssigned {
↵ | | 1 | public class Object2 {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private ParentAssigned owner;↵ | | 3 | private ↵
|
4 | private String info;↵ | | |
|
|
5 | public ParentInfoAssigned() {↵ | | |
|
6 | }↵ | | |
|
|
7 | public ParentInfoAssigned(String info↵ | | 4 | String dummy;↵
|
| | | 5 | private MainObject belongsToMainObj;↵
|
|
8 | ) {
↵ | | 6 | public Long getId() {↵
|
9 | this.info = info;↵ | | 7 | ↵
|
10 | }↵ | | |
|
|
11 | public Long getId(↵ | | 8 | return id;↵
|
| | | 9 | }↵
|
|
12 | ) {
↵ | | 10 | public void setId(Long l) {↵
|
13 | return id;↵ | | 11 | ↵
|
14 | }↵ | | |
|
|
15 | public ParentAssigned getOwner↵ | | 12 | this.id = l;↵
|
| | | 13 | }↵
|
| | | 14 | ↵
|
16 | () {
↵ | | 15 | public String getDummy() {↵
|
17 | return owner;↵ | | 16 | return ↵
|
18 | }↵ | | |
|
19 |
↵ | | 17 | dummy;↵
|
| | | 18 | }↵
|
|
20 | public void setOwner(ParentAssigned owner) {
↵ | | 19 | public void setDummy(String string) {↵
|
21 | this.owner = owner;↵ | | 20 | ↵
|
22 | }↵ | | |
|
|
23 | public String getInfo↵ | | 21 | dummy = string;↵
|
| | | 22 | }↵
|
|
24 | () {
↵ | | 23 | public MainObject getBelongsToMainObj() {↵
|
25 | return info;↵ | | 24 | return ↵
|
26 | }↵ | | |
|
|
27 | public void setInfo(String info↵ | | 25 | belongsToMainObj;↵
|
| | | 26 | }↵
|
|
28 | ) {
↵ | | 27 | public void setBelongsToMainObj(MainObject object) {↵
|
29 | this.info = info | | 28 | belongsToMainObj = object
|