1 | public class BasicNameable implements Nameable {↵ | | 1 | public class Employee implements Serializable {↵
|
2 | ↵ | | 2 | ↵
|
3 | private String name;↵ | | 3 | private ↵
|
4 | private Long id;↵ | | |
|
5 | ↵ | | |
|
6 | /**↵ | | |
|
7 | * @see Nameable#getName()↵ | | |
|
8 | */↵ | | |
|
9 | public String getName↵ | | 4 | Integer id;↵
|
| | | 5 | private Collection employers;↵
|
|
|
10 | () {↵ | | 6 | public Integer getId() {↵
|
11 | return name;↵ | | 7 | return id;↵
|
12 | }↵ | | 8 | }↵
|
13 | ↵ | | |
|
14 | /**↵ | | |
|
15 | * @see Nameable#setName()↵ | | |
|
16 | */↵ | | |
|
17 | public void setName(String n↵ | | |
|
18 | ) {↵ | | 9 | public void setId(Integer integer) {↵
|
19 | name = n;↵ | | 10 | ↵
|
20 | }↵ | | |
|
21 | ↵ | | |
|
22 | /**↵ | | |
|
23 | * @see Nameable#getKey()↵ | | |
|
24 | */↵ | | 11 | id = integer;↵
|
| | | 12 | }↵
|
| | | 13 | ↵
|
| | | 14 | ↵
|
25 | public Long getKey() {↵ | | 15 | public Collection getEmployers() {↵
|
26 | return id;↵ | | 16 | return ↵
|
27 | }↵ | | |
|
28 | ↵ | | |
|
29 | /**↵ | | |
|
30 | * @see Nameable#setKey()↵ | | |
|
31 | */↵ | | |
|
32 | public void setKey(Long k) {↵ | | |
|
33 | id = k↵ | | 17 | employers;↵
|
| | | 18 | }↵
|
| | | 19 | ↵
|
| | | 20 | public void setEmployers(Collection employers) {↵
|
34 | ;↵ | | 21 | this.employers = employers;↵
|
35 | | | 22 |
|