1 | public class Salesperson {↵ | | 1 | public class Zoo {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private String region;↵ | | 4 | private Classification classification;↵
|
5 | private Date hireDate;↵ | | 5 | private ↵
|
6 | private Department department;↵ | | |
|
7 | private Set orders = new HashSet()↵ | | 6 | Map animals;↵
|
| | | 7 | private Map mammals;↵
|
8 | ;↵ | | 8 | private Address address;↵
|
|
9 | public Long getId() {↵ | | 9 | public Long getId() {↵
|
10 | return id;↵ | | 10 | return id;↵
|
11 | }↵ | | 11 | }↵
|
|
12 | public void setId(Long id) {↵ | | 12 | public void setId(Long id) {↵
|
13 | this.id = id;↵ | | 13 | this.id = id;↵
|
14 | }↵ | | 14 | }↵
|
|
15 | public String getName() {↵ | | 15 | public String getName() {↵
|
16 | return name;↵ | | 16 | return name;↵
|
17 | }↵ | | 17 | }↵
|
|
18 | public void setName(String name) {↵ | | 18 | public void setName(String name) {↵
|
19 | this.name = name;↵ | | 19 | this.name = name;↵
|
20 | }↵ | | 20 | }↵
|
|
21 | public String getRegion() {↵ | | 21 | public Map getMammals() {↵
|
22 | return region;↵ | | 22 | return mammals;↵
|
23 | }↵ | | 23 | }↵
|
|
24 | public void setRegion(String region) {↵ | | 24 | public void set↵
|
25 | this.region = region↵ | | 25 | Mammals(Map mammals) {↵
|
26 | ;↵ | | 26 | this.mammals = mammals;↵
|
27 | }↵ | | 27 | }↵
|
|
28 | public Set getOrders() {↵ | | 28 | public Map getAnimals() {↵
|
29 | return orders;↵ | | 29 | return animals;↵
|
30 | }↵ | | 30 | }↵
|
|
31 | public void setOrders(Set orders) {↵ | | 31 | public void set↵
|
32 | this.orders = order↵ | | 32 | Animals(Map animals) {↵
|
33 | s;↵ | | 33 | this.animals = animals;↵
|
34 | }↵ | | 34 | }↵
|
|
35 | public Date getHireDate() {↵ | | 35 | public Address getAddress() {↵
|
36 | return hireDate;↵ | | 36 | return address;↵
|
37 | }↵ | | 37 | }↵
|
|
38 | public void setHireDate(Date hireDate) {↵ | | 38 | public void set↵
|
39 | this.hireDate = hireDate;↵ | | |
|
40 | }↵ | | |
|
|
41 | public Department getDepartment() {↵ | | |
|
42 | return department;↵ | | |
|
43 | }↵ | | |
|
|
44 | public void setDepartment(Department department) {↵ | | |
|
45 | this.department = department | | 39 | Address(Address address) {↵
|
| | | 40 | this.address = address;↵
|
| | | 41 | }↵
|
|
| | | 42 | public Classification getClassification() {↵
|
| | | 43 | return classification;↵
|
| | | 44 | }↵
|
|
| | | 45 | public void setClassification(Classification classification) {↵
|
| | | 46 | this.classification = classification
|