1 | public class Silly implements Serializable {↵ | | 1 | public class ↵
|
2 | private Long id;↵ | | |
|
3 | private String name;↵ | | |
|
4 | private Other other;↵ | | |
|
|
5 | public Silly() {↵ | | 2 | Customer {↵
|
|
|
|
| | | 3 | public Customer() {↵
|
|
| | | 4 | super();↵
|
|
6 | }↵ | | 5 | }↵
|
|
|
|
7 | public Silly(String name) {↵ | | 6 | public Customer(String orgName, String custName, String add) {↵
|
|
8 | this.name = name;↵ | | 7 | this.orgName = orgName;↵
|
9 | }↵ | | |
|
|
10 | public Silly(String name, Other other) {↵ | | |
|
11 | this.name = name;↵ | | |
|
12 | this.other = other;↵ | | |
|
13 | }↵ | | |
|
| | | 8 | this.customerName = custName;↵
|
|
| | | 9 | this.address = add;↵
|
|
| | | 10 | }↵
|
|
|
|
| | | 11 | private String orgName;↵
|
|
| | | 12 | private String customerName;↵
|
|
| | | 13 | private String address;↵
|
|
|
|
14 | public Long getId() {↵ | | 14 | public String getAddress() {↵
|
|
15 | return id;↵ | | 15 | return address;↵
|
|
16 | }↵ | | 16 | }↵
|
|
|
|
17 | public void setId(Long id) {↵ | | 17 | public void setAddress(String address) {↵
|
|
18 | this.id = id;↵ | | 18 | this.address = address;↵
|
|
19 | }↵ | | 19 | }↵
|
|
|
|
20 | public String getName() {↵ | | 20 | public String getCustomerName() {↵
|
|
21 | return name;↵ | | 21 | return customerName;↵
|
|
22 | }↵ | | 22 | }↵
|
|
|
|
23 | public void setName(String name) {↵ | | 23 | public void setCustomerName(String customerName) {↵
|
|
24 | this.name = name;↵ | | 24 | this.customerName = customerName;↵
|
|
25 | }↵ | | 25 | }↵
|
|
|
|
26 | public Other getOther() {↵ | | 26 | public String getOrgName() {↵
|
|
27 | return other;↵ | | 27 | return orgName;↵
|
|
28 | }↵ | | 28 | }↵
|
|
|
|
29 | public void setOther(Other other) {↵ | | 29 | public void setOrgName(String orgName) {↵
|
|
30 | this.other = other;↵ | | 30 | this.orgName = orgName;
|
31 | | | | |