1 | public class Person {
↵ | | 1 | public class Site {↵
|
2 | private Long id;
↵ | | 2 | private String name;↵
|
3 | private String name;
↵ | | 3 | private String description;↵
|
4 | private Set addresses = new HashSet();
↵ | | 4 | private Set employees = new HashSet();↵
|
5 | private Collection friends = new ArrayList();↵ | | 5 | private ↵
|
|
6 | public Person() {↵ | | |
|
7 | }↵ | | |
|
8 |
↵ | | 6 | Set managers = new HashSet();↵
|
|
| | | 7 | Site() {}↵
|
9 | public Person(String name) {
↵ | | 8 | public Site(String name) {↵
|
10 | this.name = name;
↵ | | 9 | this.name=name;↵
|
11 | }↵ | | 10 | }↵
|
12 |
↵ | | |
|
13 | public Long getId() {
↵ | | 11 | public Set getManagers() {↵
|
14 | return id;↵ | | 12 | return ↵
|
15 | }↵ | | |
|
16 |
↵ | | 13 | managers;↵
|
| | | 14 | }↵
|
17 | public void setId(Long id) {
↵ | | 15 | public void setManagers(Set managers) {↵
|
18 | this.id = id;↵ | | 16 | this.↵
|
19 | }↵ | | |
|
20 |
↵ | | 17 | managers = managers;↵
|
| | | 18 | }↵
|
21 | public String getName() {
↵ | | 19 | public String getDescription() {↵
|
22 | return name;↵ | | 20 | return ↵
|
23 | }↵ | | |
|
24 |
↵ | | 21 | description;↵
|
| | | 22 | }↵
|
25 | public void setName(String name) {
↵ | | 23 | public void setDescription(String description) {↵
|
26 | this.name = name;↵ | | 24 | this.↵
|
27 | }↵ | | |
|
28 |
↵ | | 25 | description = description;↵
|
| | | 26 | }↵
|
29 | public Set getAddresses() {
↵ | | 27 | public Set getEmployees() {↵
|
30 | return addresses;
↵ | | 28 | return employees;↵
|
31 | }↵ | | 29 | }↵
|
32 |
↵ | | |
|
33 | public void setAddresses(Set addresses) {
↵ | | 30 | public void setEmployees(Set employees) {↵
|
34 | this.addresses = addresses;
↵ | | 31 | this.employees = employees;↵
|
35 | }↵ | | 32 | }↵
|
36 |
↵ | | |
|
37 | public Collection getFriends() {
↵ | | 33 | public String getName() {↵
|
38 | return friends;↵ | | 34 | return ↵
|
39 | }↵ | | |
|
40 |
↵ | | 35 | name;↵
|
| | | 36 | }↵
|
41 | public void setFriends(Collection friends) {
↵ | | 37 | public void setName(String name) {↵
|
42 | this.friends = friends;
↵ | | 38 | this.name = name;↵
|
43 | | | 39 |
|