1 | public class Employee implements Serializable {↵ | | 1 | public class Identity implements Serializable {
↵
|
2 | private Integer id;↵ | | 2 | private ↵
|
3 | private Collection employers;↵ | | |
|
|
| | | 3 | String name;↵
|
| | | 4 | private String ssn;↵
|
| | | 5 |
↵
|
4 | public Integer getId() {↵ | | 6 | public String getSsn() {
↵
|
5 | return id;↵ | | 7 | return ssn;
↵
|
6 | }↵ | | 8 | }↵
|
| | | 9 |
↵
|
7 | public void setId(Integer integer) {↵ | | 10 | public void setSsn(String id) {
↵
|
8 | id = integer;↵ | | 11 | ↵
|
9 | }↵ | | |
|
10 | ↵ | | |
|
11 | ↵ | | |
|
12 | public Collection getEmployers↵ | | 12 | this.ssn = id;↵
|
| | | 13 | }↵
|
13 | () {↵ | | 14 | public String getName() {
↵
|
14 | return employers;↵ | | 15 | return name;
↵
|
15 | }↵ | | 16 | }↵
|
16 | ↵ | | 17 |
↵
|
17 | public void setEmployers(Collection employers) {↵ | | 18 | public void setName(String name) {
↵
|
18 | this.employers = employers;↵ | | 19 | this.name = name;
↵
|
19 | | | 20 |
|