1 | public class Department {↵ | | 1 | public class Joiner {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private Set salespersons = new HashSet();↵ | | 4 | private String joinedName;↵
|
|
5 | public Long getId() {↵ | | 5 | public Long getId() {↵
|
6 | return id;↵ | | 6 | return id;↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void setId(Long id) {↵ | | 8 | public void setId(Long id) {↵
|
9 | this.id = id;↵ | | 9 | this.id = id;↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public String getName() {↵ | | 11 | public String getName() {↵
|
12 | return name;↵ | | 12 | return name;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void setName(String name) {↵ | | 14 | public void setName(String name) {↵
|
15 | this.name = name;↵ | | 15 | this.name = name;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public Set getSalespersons() {↵ | | 17 | public String getJoinedName() {↵
|
18 | return salespersons;↵ | | 18 | return joinedName;↵
|
19 | }↵ | | 19 | }↵
|
|
20 | public void setSalespersons(Set salespersons) {↵ | | 20 | public void set↵
|
21 | this.salespersons = salespersons↵ | | 21 | JoinedName(String joinedName) {↵
|
22 | ;↵ | | 22 | this.joinedName = joinedName;↵
|
23 | | | 23 |
|