1 | public class ComponentOwner {↵ | | 1 | public class Person {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private Component component;↵ | | 4 | private ↵
|
|
5 | public ComponentOwner↵ | | 5 | Address address;↵
|
| | | 6 | private PersonalDetails details;↵
|
|
6 | () {↵ | | 7 | public Person() {↵
|
7 | }↵ | | 8 | }↵
|
|
8 | public ComponentOwner(String name) {↵ | | 9 | public Person(String name) {↵
|
9 | this.name = name;↵ | | 10 | this.name = name;↵
|
10 | }↵ | | 11 | }↵
|
|
11 | public Long getId() {↵ | | 12 | public Long getId() {↵
|
12 | return id;↵ | | 13 | return id;↵
|
13 | }↵ | | 14 | }↵
|
|
14 | public void setId(Long id) {↵ | | 15 | public void setId(Long id) {↵
|
15 | this.id = id;↵ | | 16 | this.id = id;↵
|
16 | }↵ | | 17 | }↵
|
|
17 | public String getName() {↵ | | 18 | public String getName() {↵
|
18 | return name;↵ | | 19 | return name;↵
|
19 | }↵ | | 20 | }↵
|
|
20 | public void setName(String name) {↵ | | 21 | public void setName(String name) {↵
|
21 | this.name = name;↵ | | 22 | this.name = name;↵
|
22 | }↵ | | 23 | }↵
|
|
23 | public Component getComponent() {↵ | | 24 | public Address getAddress() {↵
|
24 | return component;↵ | | 25 | return address;↵
|
25 | }↵ | | 26 | }↵
|
|
26 | public void setComponent(Component component) {↵ | | 27 | public void set↵
|
27 | this.component = component;↵ | | |
|
28 | }↵ | | |
|
|
29 | public static class Component {↵ | | |
|
30 | private int generated;↵ | | |
|
|
31 | public int getGenerated↵ | | 28 | Address(Address address) {↵
|
| | | 29 | this.address = address;↵
|
| | | 30 | }↵
|
|
32 | () {↵ | | 31 | public PersonalDetails getDetails() {↵
|
33 | return generated;↵ | | 32 | return details;↵
|
34 | }↵ | | 33 | }↵
|
|
35 | public void setGenerated(int generated) {↵ | | 34 | public void setDetails(PersonalDetails details) {↵
|
36 | this.generated = generated;↵ | | 35 | this.details = details;↵
|
37 | | | 36 |
|