1 | public class Car implements java.io.Serializable {↵ | | 1 | public class Customer implements Serializable {↵
|
|
2 | private long id;↵ | | 2 | private String name;↵
|
3 | private String model;↵ | | 3 | private String customerId;↵
|
4 | private CarType carType;↵ | | 4 | private ↵
|
5 | private Set carParts = new HashSet();↵ | | |
|
6 | ↵ | | |
|
7 | /**↵ | | |
|
8 | * @return Returns the carType.↵ | | |
|
9 | */↵ | | |
|
10 | public CarType getCarType() {↵ | | |
|
11 | return carType;↵ | | |
|
12 | }↵ | | |
|
13 | /**↵ | | |
|
14 | * @param carType The carType to set.↵ | | |
|
15 | */↵ | | |
|
16 | public void setCarType(CarType carType) {↵ | | |
|
17 | this.carType = carType;↵ | | |
|
18 | }↵ | | |
|
19 | /**↵ | | |
|
20 | * @return Returns the id.↵ | | |
|
21 | */↵ | | 5 | Address billingAddress;↵
|
| | | 6 | private Address shippingAddress;↵
|
|
| | | 7 | public Address getBillingAddress() {↵
|
| | | 8 | return billingAddress;↵
|
| | | 9 | }↵
|
| | | 10 | public void setBillingAddress(Address billingAddress) {↵
|
| | | 11 | this.billingAddress = billingAddress;↵
|
| | | 12 | }↵
|
22 | public long getId() {↵ | | 13 | public String getCustomerId() {↵
|
23 | return id;↵ | | 14 | return ↵
|
24 | }↵ | | |
|
25 | /**↵ | | |
|
26 | * @param id The id to set.↵ | | |
|
27 | */↵ | | |
|
28 | public void setId(long id) {↵ | | |
|
29 | this.id = id;↵ | | |
|
30 | }↵ | | |
|
31 | /**↵ | | |
|
32 | * @return Returns the model.↵ | | |
|
33 | */↵ | | 15 | customerId;↵
|
| | | 16 | }↵
|
| | | 17 | public void setCustomerId(String customerId) {↵
|
| | | 18 | this.customerId = customerId;↵
|
| | | 19 | }↵
|
34 | public String getModel() {↵ | | 20 | public String getName() {↵
|
35 | return model;↵ | | 21 | return name;↵
|
36 | }↵ | | 22 | }↵
|
37 | /**↵ | | 23 | ↵
|
38 | * @param model The model to set.↵ | | |
|
39 | */↵ | | |
|
40 | public void setModel(String model) {↵ | | 24 | public void setName(String name) {↵
|
41 | this.model = model;↵ | | 25 | this.↵
|
42 | }↵ | | |
|
43 | public Set getCarPart↵ | | 26 | name = name;↵
|
| | | 27 | }↵
|
44 | s() {↵ | | 28 | public Address getShippingAddress() {↵
|
45 | return carParts;↵ | | 29 | return shippingAddress;↵
|
46 | }↵ | | 30 | }↵
|
47 | public void setCarParts(Set carParts) {↵ | | 31 | public void set↵
|
48 | this.carParts = carPart↵ | | 32 | ShippingAddress(Address shippingAddress) {↵
|
49 | s | | 33 | this.shippingAddress = shippingAddress
|