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) {↵ | | |
|
| | | 8 | this.customerName = custName;↵
|
|
11 | this.name = name;↵ | | 9 | this.↵
|
12 | this.other = other;↵ | | |
|
13 | }↵ | | 10 | address = add;↵
|
|
| | | 11 | }↵
|
|
|
|
| | | 12 | private String orgName;↵
|
|
| | | 13 | private String customerName;↵
|
|
| | | 14 | private String address;↵
|
|
|
|
14 | public Long getId() {↵ | | 15 | public String getAddress() {↵
|
|
15 | return id;↵ | | 16 | return address;↵
|
|
16 | }↵ | | 17 | }↵
|
|
|
|
17 | public void setId(Long id) {↵ | | 18 | public void setAddress(String address) {↵
|
|
18 | this.id = id;↵ | | 19 | this.address = address;↵
|
|
19 | }↵ | | 20 | }↵
|
|
|
|
20 | public String getName() {↵ | | 21 | public String getCustomerName() {↵
|
|
21 | return name;↵ | | 22 | return customerName;↵
|
|
22 | }↵ | | 23 | }↵
|
|
|
|
23 | public void setName(String name) {↵ | | 24 | public void setCustomerName(String customerName) {↵
|
|
24 | this.name = name;↵ | | 25 | this.customerName = customerName;↵
|
|
25 | }↵ | | 26 | }↵
|
|
|
|
26 | public Other getOther() {↵ | | 27 | public String getOrgName() {↵
|
|
27 | return other;↵ | | 28 | return orgName;↵
|
|
28 | }↵ | | 29 | }↵
|
|
|
|
29 | public void setOther(Other other) {↵ | | 30 | public void setOrgName(String orgName) {↵
|
|
30 | this.other = other | | 31 | this.orgName = orgName
|