1 | public class Silly implements Serializable {↵ | | 1 | public class ChildAssigned {
↵
|
2 | private Long id;↵ | | 2 | private Long id;
↵
|
3 | private String name;↵ | | 3 | private String name;
↵
|
4 | private Other other;↵ | | 4 | private ↵
|
|
5 | public Silly↵ | | 5 | ParentAssigned parent;↵
|
| | | 6 | private ChildInfoAssigned info;↵
|
|
6 | () {↵ | | 7 | public ChildAssigned() {
↵
|
7 | }↵ | | 8 | }↵
|
|
| | | 9 |
↵
|
8 | public Silly(String name) {↵ | | 10 | public ChildAssigned(Long id, String name) {↵
|
| | | 11 | this.id = id;
↵
|
9 | this.name = name;↵ | | 12 | this.name = name;
↵
|
10 | }↵ | | 13 | }↵
|
|
| | | 14 |
↵
|
11 | public Silly(String name, Other other) {↵ | | 15 | public Long getId() {
↵
|
12 | this.name = name;↵ | | 16 | ↵
|
13 | this.other = other;↵ | | |
|
14 | }↵ | | |
|
| | | 17 | return id;↵
|
| | | 18 | }↵
|
| | | 19 |
↵
|
15 | public Long getId() {↵ | | 20 | public String getName() {
↵
|
16 | return id;↵ | | 21 | return ↵
|
17 | }↵ | | |
|
| | | 22 | name;↵
|
| | | 23 | }↵
|
| | | 24 |
↵
|
18 | public void setId(Long id) {↵ | | 25 | public void setName(String name) {
↵
|
19 | this.id = id;↵ | | 26 | this.↵
|
20 | }↵ | | |
|
|
21 | public String getName↵ | | 27 | name = name;↵
|
| | | 28 | }↵
|
|
22 | () {↵ | | 29 | public ParentAssigned getParent() {
↵
|
23 | return name;↵ | | 30 | return ↵
|
24 | }↵ | | |
|
| | | 31 | parent;↵
|
| | | 32 | }↵
|
| | | 33 |
↵
|
25 | public void setName(String name) {↵ | | 34 | public void setParent(ParentAssigned parent) {
↵
|
26 | this.name = name;↵ | | 35 | this.↵
|
27 | }↵ | | |
|
|
28 | public Other getOther↵ | | 36 | parent = parent;↵
|
| | | 37 | }↵
|
|
29 | () {↵ | | 38 | public ChildInfoAssigned getInfo() {
↵
|
30 | return other;↵ | | 39 | return ↵
|
31 | }↵ | | |
|
| | | 40 | info;↵
|
| | | 41 | }↵
|
| | | 42 |
↵
|
32 | public void setOther(Other other) {↵ | | 43 | public void setInfo(ChildInfoAssigned info) {
↵
|
33 | this.other = other | | 44 | this.info = info
|