1 | public class Person {↵ | | 1 | public class ↵
|
2 | ↵ | | 2 | Event {↵
|
| | | 3 | private Long id;↵
|
|
3 | private String name;↵ | | 4 | private String ↵
|
4 | ↵ | | 5 | title;↵
|
5 | private Date dob;↵ | | 6 | private Date d↵
|
6 | private Employee employee;↵ | | |
|
7 | private Customer customer;↵ | | |
|
8 | public Customer getCustomer() {↵ | | |
|
9 | return customer;↵ | | |
|
10 | }↵ | | |
|
11 | public void setCustomer(Customer customer) {↵ | | |
|
12 | this.customer = customer;↵ | | |
|
13 | }↵ | | |
|
14 | public Employee getEmployee() {↵ | | |
|
15 | return employee;↵ | | |
|
16 | }↵ | | |
|
17 | public void setEmployee(Employee employee) {↵ | | |
|
18 | this.employee = employee;↵ | | |
|
19 | }↵ | | |
|
20 | ↵ | | 7 | ate;↵
|
|
| | | 8 | public Event() {}↵
|
|
| | | 9 | public Long getId() {↵
|
| | | 10 | return id;↵
|
| | | 11 | }↵
|
|
| | | 12 | private void setId(Long id) {↵
|
| | | 13 | this.id = id;↵
|
| | | 14 | }↵
|
|
| | | 15 | public 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 Date getDob() {↵ | | |
|
29 | return dob;↵ | | |
|
30 | }↵ | | |
|
31 | public void setDob(Date dob) {↵ | | |
|
32 | this.dob = dob;↵ | | |
|
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 |
|