1 | public class PropertySet {↵ | | 1 | public class ↵
|
2 | private Long id;
↵ | | 2 | Employee {↵
|
3 | private String name;
↵ | | 3 | private String name;↵
|
4 | private PropertyValue someSpecificProperty;↵ | | 4 | private ↵
|
5 | private Map generalProperties = new HashMap();↵ | | |
|
|
6 | public PropertySet() {↵ | | |
|
7 | }↵ | | |
|
|
8 | public PropertySet↵ | | 5 | Date hireDate;↵
|
| | | 6 | private Map managerBySite = new HashMap();↵
|
| | | 7 | private Set underlings = new HashSet();↵
|
| | | 8 | ↵
|
| | | 9 | Employee() {}↵
|
9 | (String name) {
↵ | | 10 | public Employee(String name) {↵
|
10 | this.name = name;
↵ | | 11 | this.name=name;↵
|
11 | }↵ | | 12 | }↵
|
12 |
↵ | | |
|
13 | public Long getId() {
↵ | | 13 | public Map getManagerBySite() {↵
|
14 | return id;↵ | | 14 | return ↵
|
15 | }↵ | | |
|
|
16 | public void setId(Long id↵ | | 15 | managerBySite;↵
|
| | | 16 | }↵
|
17 | ) {
↵ | | 17 | public void setManagerBySite(Map managerBySite) {↵
|
18 | this.id = id;↵ | | 18 | this.↵
|
19 | }↵ | | |
|
20 |
↵ | | 19 | managerBySite = managerBySite;↵
|
| | | 20 | }↵
|
21 | public String getName() {
↵ | | 21 | public String getName() {↵
|
22 | return name;
↵ | | 22 | return name;↵
|
23 | }↵ | | 23 | }↵
|
24 |
↵ | | |
|
25 | public void setName(String name) {
↵ | | 24 | public void setName(String name) {↵
|
26 | this.name = name;
↵ | | 25 | this.name = name;↵
|
27 | }↵ | | 26 | }↵
|
28 |
↵ | | |
|
29 | public PropertyValue getSomeSpecificProperty() {
↵ | | 27 | public Set getUnderlings() {↵
|
30 | return someSpecificProperty;↵ | | 28 | return ↵
|
31 | }↵ | | |
|
|
32 | public void setSomeSpecificProperty(PropertyValue someSpecificProperty↵ | | 29 | underlings;↵
|
| | | 30 | }↵
|
33 | ) {
↵ | | 31 | public void setUnderlings(Set underlings) {↵
|
34 | this.someSpecificProperty = someSpecificProperty;↵ | | 32 | this.↵
|
35 | }↵ | | |
|
36 |
↵ | | 33 | underlings = underlings;↵
|
| | | 34 | }↵
|
37 | public Map getGeneralProperties() {
↵ | | 35 | public Date getHireDate() {↵
|
38 | return generalProperties;↵ | | 36 | return ↵
|
39 | }↵ | | |
|
|
40 | public void setGeneralProperties(Map generalProperties↵ | | 37 | hireDate;↵
|
| | | 38 | }↵
|
41 | ) {
↵ | | 39 | public void setHireDate(Date hireDate) {↵
|
42 | this.generalProperties = generalProperties | | 40 | this.hireDate = hireDate
|