1 | public class Model {↵ | | 1 | public class Employee {↵
|
2 | private String id;↵ | | 2 | private String name;↵
|
3 | private String name;↵ | | 3 | private ↵
|
4 | private String description;↵ | | |
|
5 | private ProductLine productLine;↵ | | |
|
6 | ↵ | | |
|
7 | Model↵ | | 4 | Date hireDate;↵
|
| | | 5 | private Map managerBySite = new HashMap();↵
|
| | | 6 | private Set underlings = new HashSet();↵
|
| | | 7 | ↵
|
8 | () {}↵ | | 8 | Employee() {}↵
|
9 | ↵ | | 9 | ↵
|
10 | public Model(ProductLine pl) {↵ | | 10 | public ↵
|
11 | this.productLine = pl;↵ | | |
|
12 | pl.getModels().add(this)↵ | | 11 | Employee(String name) {↵
|
13 | ;↵ | | 12 | this.name=name;↵
|
14 | }↵ | | 13 | }↵
|
15 | ↵ | | 14 | ↵
|
16 | public String getDescription() {↵ | | 15 | public Map getManagerBySite() {↵
|
17 | return description;↵ | | 16 | return managerBySite;↵
|
18 | }↵ | | 17 | }↵
|
19 | public void setDescription(String description) {↵ | | 18 | public void set↵
|
20 | this.description = description↵ | | 19 | ManagerBySite(Map managerBySite) {↵
|
21 | ;↵ | | 20 | this.managerBySite = managerBySite;↵
|
22 | }↵ | | 21 | }↵
|
23 | public String getId() {↵ | | 22 | public String getName() {↵
|
24 | return id;↵ | | 23 | return name;↵
|
25 | }↵ | | 24 | }↵
|
26 | public void setId(String id) {↵ | | 25 | public void setName(String name) {↵
|
27 | this.id = id;↵ | | 26 | this.name = name;↵
|
28 | }↵ | | 27 | }↵
|
29 | public String getName() {↵ | | 28 | public Set getUnderlings() {↵
|
30 | return name;↵ | | 29 | return underlings;↵
|
31 | }↵ | | 30 | }↵
|
32 | public void setName(String name) {↵ | | 31 | public void setUnderlings(Set underlings) {↵
|
33 | this.name = name;↵ | | 32 | this.underlings = underlings;↵
|
34 | }↵ | | 33 | }↵
|
35 | public ProductLine getProductLine() {↵ | | 34 | public Date getHireDate() {↵
|
36 | return productLine;↵ | | 35 | return hireDate;↵
|
37 | }↵ | | 36 | }↵
|
38 | public void setProductLine(ProductLine productLine) {↵ | | 37 | public void setHireDate(Date hireDate) {↵
|
39 | this.productLine = productLine;↵ | | 38 | this.hireDate = hireDate;↵
|
40 | | | 39 |
|