1 | public class Model {↵ | | 1 | public class ↵
|
2 | private String id;↵ | | 2 | Site {↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private String description;↵ | | 4 | private String description;↵
|
5 | private ProductLine productLine↵ | | 5 | private Set employees = new HashSet();↵
|
6 | ;↵ | | 6 | private Set managers = new HashSet();↵
|
7 | ↵ | | |
|
8 | Model() {}↵ | | 7 | Site() {}↵
|
9 | ↵ | | 8 | ↵
|
10 | public Model(ProductLine pl) {↵ | | 9 | public ↵
|
11 | this.productLine = pl;↵ | | |
|
12 | pl.getModels().add(this)↵ | | 10 | Site(String name) {↵
|
| | | 11 | this.name=name;↵
|
| | | 12 | }↵
|
| | | 13 | public Set getManagers() {↵
|
| | | 14 | return managers;↵
|
| | | 15 | }↵
|
| | | 16 | public void setManagers(Set managers) {↵
|
13 | ;↵ | | 17 | this.managers = managers;↵
|
14 | }↵ | | 18 | }↵
|
15 | ↵ | | 19 | ↵
|
16 | public String getDescription() {↵ | | 20 | public String getDescription() {↵
|
17 | return description;↵ | | 21 | return description;↵
|
18 | }↵ | | 22 | }↵
|
19 | public void setDescription(String description) {↵ | | 23 | public void setDescription(String description) {↵
|
20 | this.description = description;↵ | | 24 | this.description = description;↵
|
21 | }↵ | | 25 | }↵
|
22 | public String getId() {↵ | | 26 | public Set getEmployees() {↵
|
23 | return id;↵ | | 27 | return employees;↵
|
24 | }↵ | | 28 | }↵
|
25 | public void setId(String id) {↵ | | 29 | public void set↵
|
26 | this.id = id↵ | | 30 | Employees(Set employees) {↵
|
27 | ;↵ | | 31 | this.employees = employees;↵
|
28 | }↵ | | 32 | }↵
|
29 | public String getName() {↵ | | 33 | public String getName() {↵
|
30 | return name;↵ | | 34 | return name;↵
|
31 | }↵ | | 35 | }↵
|
32 | public void setName(String name) {↵ | | 36 | public void setName(String name) {↵
|
33 | this.name = name;↵ | | 37 | this.name = name
|
34 | }↵ | | | |
35 | public ProductLine getProductLine() {↵ | | | |
36 | return productLine;↵ | | | |
37 | }↵ | | | |
38 | public void setProductLine(ProductLine productLine) {↵ | | | |
39 | this.productLine = productLine | | | |