1 | public class Customer {↵ | | 1 | public class C↵
|
|
|
|
2 | public Customer() {↵ | | |
|
|
3 | super();↵ | | |
|
|
4 | }↵ | | |
|
|
|
|
5 | public Customer(String orgName, String custName, String add↵ | | 2 | hildAssigned {↵
|
| | | 3 | private Long id;↵
|
| | | 4 | private String name;↵
|
| | | 5 | private ParentAssigned parent;↵
|
| | | 6 | private ChildInfoAssigned info;↵
|
|
| | | 7 | public ChildAssigned() {↵
|
| | | 8 | }↵
|
|
6 | ) {↵ | | 9 | public ChildAssigned(Long id, String name) {↵
|
| | | 10 |
↵
|
7 | this.orgName = orgName;↵ | | 11 | this.↵
|
|
8 | this.customerName = custName;↵ | | |
|
|
9 | this.address = add;↵ | | |
|
|
10 | }↵ | | |
|
|
|
|
11 | private String orgName;↵ | | |
|
|
12 | private String customerName;↵ | | |
|
|
13 | private String address;↵ | | |
|
|
|
| | | 12 | id = id;↵
|
| | | 13 | this.name = name;↵
|
| | | 14 | }↵
|
|
| | | 15 | public Long getId() {↵
|
| | | 16 | return id;↵
|
| | | 17 | }↵
|
| | | 18 |
↵
|
14 | public String getAddress() {↵ | | 19 | public String getName() {↵
|
| | | 20 |
↵
|
15 | return address;↵ | | 21 | return ↵
|
|
16 | }↵ | | |
|
|
|
| | | 22 | name;↵
|
| | | 23 | }↵
|
| | | 24 |
↵
|
17 | public void setAddress(String address) {↵ | | 25 | public void setName(String name) {↵
|
| | | 26 |
↵
|
18 | this.address = address;↵ | | 27 | this.↵
|
|
19 | }↵ | | |
|
|
|
|
20 | public String getCustomerName↵ | | 28 | name = name;↵
|
| | | 29 | }↵
|
|
21 | () {↵ | | 30 | public ParentAssigned getParent() {↵
|
| | | 31 |
↵
|
22 | return customerName;↵ | | 32 | return ↵
|
|
23 | }↵ | | |
|
|
|
|
24 | public void setCustomerName(String customerName↵ | | 33 | parent;↵
|
| | | 34 | }↵
|
|
25 | ) {↵ | | 35 | public void setParent(ParentAssigned parent) {↵
|
| | | 36 |
↵
|
26 | this.customerName = customerName;↵ | | 37 | this.↵
|
|
27 | }↵ | | |
|
|
|
|
28 | public String getOrgName↵ | | 38 | parent = parent;↵
|
| | | 39 | }↵
|
|
29 | () {↵ | | 40 | public ChildInfoAssigned getInfo() {↵
|
| | | 41 |
↵
|
30 | return orgName;↵ | | 42 | return ↵
|
|
31 | }↵ | | |
|
|
|
| | | 43 | info;↵
|
| | | 44 | }↵
|
| | | 45 |
↵
|
32 | public void setOrgName(String orgName) {↵ | | 46 | public void setInfo(ChildInfoAssigned info) {↵
|
| | | 47 |
↵
|
33 | this.orgName = orgName; | | 48 | this.↵
|
| | | 49 | info = info;↵
|
| | | 50 |
|