1 | public class Thing {↵ | | 1 | public class Person {↵
|
| | | 2 | private String name;↵
|
| | | 3 | private Date dob;↵
|
2 | private Employee salesperson;↵ | | 4 | private Employee ↵
|
3 | private String comments;↵ | | |
|
|
4 | /**↵ | | |
|
5 | * @return Returns the salesperson.↵ | | |
|
6 | */↵ | | |
|
7 | public Employee getSalesperson() {↵ | | |
|
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 | */↵ | | 5 | employee;↵
|
| | | 6 | private Customer customer;↵
|
| | | 7 | public Customer getCustomer() {↵
|
| | | 8 | return customer;↵
|
| | | 9 | }↵
|
| | | 10 | public void setCustomer(Customer customer) {↵
|
| | | 11 | this.customer = customer;↵
|
| | | 12 | }↵
|
19 | public String getComments() {↵ | | 13 | public ↵
|
20 | return comments;↵ | | |
|
21 | }↵ | | |
|
22 | /**↵ | | |
|
23 | * @param comments The comments to set.↵ | | |
|
24 | */↵ | | |
|
25 | public void setComments(String comments) {↵ | | |
|
26 | this.comments = comments;↵ | | |
|
27 | }↵ | | |
|
|
28 | Long id;↵ | | |
|
29 | String name;↵ | | |
|
|
30 | /**↵ | | |
|
31 | * @return Returns the ID.↵ | | |
|
32 | */↵ | | 14 | Employee getEmployee() {↵
|
| | | 15 | return employee;↵
|
| | | 16 | }↵
|
| | | 17 | public void setEmployee(Employee employee) {↵
|
| | | 18 | this.employee = employee;↵
|
| | | 19 | }↵
|
33 | public Long getId() {↵ | | 20 | public String getName() {↵
|
34 | return id;↵ | | 21 | 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↵ | | 22 | name;↵
|
| | | 23 | }↵
|
| | | 24 | public void setName(String name) {↵
|
44 | name.↵ | | 25 | this.name = name;↵
|
45 | */↵ | | 26 | }↵
|
46 | public String getName() {↵ | | 27 | public Date getDob() {↵
|
47 | return name;↵ | | 28 | return dob;↵
|
48 | }↵ | | 29 | }↵
|
49 | /**↵ | | 30 | ↵
|
50 | * @param name The name to set.↵ | | |
|
51 | */↵ | | |
|
52 | public void setName(String name) {↵ | | |
|
53 | this.name = name | | 31 | public void setDob(Date dob) {↵
|
| | | 32 | this.dob = dob
|