1 | public class Customer implements Serializable {↵ | | 1 | public class ↵
|
|
2 | private String name;↵ | | |
|
3 | ↵ | | 2 | Event {↵
|
| | | 3 | private Long id;↵
|
|
4 | private String customerId;↵ | | 4 | private String ↵
|
5 | private 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 | }↵ | | |
|
13 | ↵ | | 5 | title;↵
|
| | | 6 | private Date date;↵
|
|
| | | 7 | public Event() {}↵
|
|
| | | 8 | public Long getId() {↵
|
| | | 9 | return id;↵
|
| | | 10 | }↵
|
|
| | | 11 | private void setId(Long id) {↵
|
| | | 12 | this.id = id;↵
|
| | | 13 | }↵
|
|
14 | public String getCustomerId() {↵ | | 14 | public ↵
|
15 | return customerId;↵ | | |
|
16 | }↵ | | |
|
17 | public void setCustomerId(String customerId) {↵ | | |
|
18 | this.customerId = customerId;↵ | | |
|
19 | }↵ | | |
|
20 | ↵ | | 15 | Date getDate() {↵
|
| | | 16 | return date;↵
|
| | | 17 | }↵
|
|
| | | 18 | public void setDate(Date date) {↵
|
| | | 19 | this.date = date;↵
|
| | | 20 | }↵
|
|
21 | public String getName() {↵ | | 21 | public String getTitle() {↵
|
22 | return name;↵ | | |
|
23 | }↵ | | |
|
24 | ↵ | | 22 | return title;↵
|
| | | 23 | }↵
|
|
25 | public void setName(String name) {↵ | | 24 | public void setTitle(String title) {↵
|
26 | this.name = name;↵ | | |
|
27 | }↵ | | |
|
28 | public Address getShippingAddress() {↵ | | |
|
29 | return shippingAddress;↵ | | |
|
30 | }↵ | | |
|
31 | public void setShippingAddress(Address shippingAddress) {↵ | | |
|
32 | this.shippingAddress = shippingAddress;↵ | | |
|
33 | | | 25 | this.title = title;↵
|
| | | 26 | }↵
|
| | | 27 | ↵
|
|
| | | 28 | private Set participants = new HashSet();↵
|
|
| | | 29 | public Set getParticipants() {↵
|
| | | 30 | return participants;↵
|
| | | 31 | }↵
|
|
| | | 32 | public void setParticipants(Set participants) {↵
|
| | | 33 | this.participants = participants;↵
|
| | | 34 |
|