1 | public class Thing {↵ | | 1 | public class Customer implements Serializable {↵
|
|
2 | private Employee salesperson;↵ | | 2 | private String name;↵
|
3 | private String comments;↵ | | 3 | private String c↵
|
|
4 | /**↵ | | |
|
5 | * @return Returns the salesperson.↵ | | |
|
6 | */↵ | | 4 | ustomerId;↵
|
| | | 5 | private Address billingAddress;↵
|
| | | 6 | private Address shippingAddress;↵
|
|
7 | public Employee getSalesperson() {↵ | | 7 | public ↵
|
8 | return salesperson;↵ | | |
|
9 | }↵ | | |
|
10 | /**↵ | | |
|
11 | * @param salesperson The salesperson to set.↵ | | |
|
12 | */↵ | | |
|
13 | public void setSalesperson(Employee salesperson) {↵ | | |
|
14 | this.salesperson = salesperson;↵ | | |
|
15 | }↵ | | |
|
16 | /**↵ | | |
|
17 | * @return Returns the comments.↵ | | |
|
18 | */↵ | | 8 | Address getBillingAddress() {↵
|
| | | 9 | return billingAddress;↵
|
| | | 10 | }↵
|
| | | 11 | public void setBillingAddress(Address billingAddress) {↵
|
| | | 12 | this.billingAddress = billingAddress;↵
|
| | | 13 | }↵
|
19 | public String getComments() {↵ | | 14 | public String getCustomerId() {↵
|
20 | return comments;↵ | | 15 | return c↵
|
21 | }↵ | | |
|
22 | /**↵ | | |
|
23 | * @param comments The comments to set.↵ | | |
|
24 | */↵ | | 16 | ustomerId;↵
|
| | | 17 | }↵
|
25 | public void setComments(String comments) {↵ | | 18 | public void setCustomerId(String customerId) {↵
|
26 | this.comments = comments;↵ | | 19 | this.c↵
|
27 | }↵ | | |
|
|
28 | Long id;↵ | | |
|
29 | String name;↵ | | |
|
|
30 | /**↵ | | |
|
31 | * @return Returns the ID.↵ | | |
|
32 | */↵ | | 20 | ustomerId = customerId;↵
|
| | | 21 | }↵
|
33 | public Long getId() {↵ | | 22 | public String getName() {↵
|
34 | return id;↵ | | 23 | return ↵
|
35 | }↵ | | |
|
36 | /**↵ | | |
|
37 | * @param id The ID to set.↵ | | |
|
38 | */↵ | | |
|
39 | public void setId(Long id) {↵ | | |
|
40 | this.id = id;↵ | | |
|
41 | }↵ | | |
|
42 | /**↵ | | |
|
43 | * @return Returns the↵ | | 24 | name;↵
|
| | | 25 | }↵
|
| | | 26 | public void setName(String name) {↵
|
44 | name.↵ | | 27 | this.name = name;↵
|
45 | */↵ | | 28 | }↵
|
46 | public String getName() {↵ | | 29 | public ↵
|
47 | return name;↵ | | |
|
48 | }↵ | | |
|
49 | /**↵ | | |
|
50 | * @param name The name to set.↵ | | |
|
51 | */↵ | | |
|
52 | public void setName(String name) {↵ | | |
|
53 | this.name = name↵ | | 30 | Address getShippingAddress() {↵
|
| | | 31 | return shippingAddress;↵
|
| | | 32 | }↵
|
| | | 33 | public void setShippingAddress(Address shippingAddress) {↵
|
54 | ;↵ | | 34 | this.shippingAddress = shippingAddress;↵
|
55 | | | 35 |
|