1 | public class Department {↵ | | 1 | public class ↵
|
2 | private Long id↵ | | 2 | Alien extends Being {↵
|
3 | ;↵ | | 3 | private String species;↵
|
4 | private String name;↵ | | 4 | private Hive hive;↵
|
5 | private Set salespersons = new HashSet();↵ | | 5 | private ↵
|
| | | 6 | List hivemates = new ArrayList();↵
|
| | | 7 | /**↵
|
| | | 8 | * @return Returns the species.↵
|
| | | 9 | */↵
|
6 | public Long getId() {↵ | | 10 | public String getSpecies() {↵
|
7 | return id;↵ | | 11 | return ↵
|
8 | }↵ | | |
|
|
9 | public void setId(Long id) {↵ | | |
|
10 | this.id = id↵ | | 12 | species;↵
|
| | | 13 | }↵
|
| | | 14 | /**↵
|
| | | 15 | * @param species The species to set.↵
|
| | | 16 | */↵
|
| | | 17 | public void setSpecies(String species) {↵
|
11 | ;↵ | | 18 | this.species = species;↵
|
12 | }↵ | | 19 | }↵
|
|
13 | public String getName() {↵ | | 20 | public Hive getHive() {↵
|
14 | return name;↵ | | 21 | return hive;↵
|
15 | }↵ | | 22 | }↵
|
|
16 | public void setName(String name) {↵ | | 23 | public void setHive(Hive hive) {↵
|
17 | this.name = name;↵ | | 24 | this.hive = hive;↵
|
18 | }↵ | | 25 | }↵
|
|
19 | public Set getSalespersons() {↵ | | 26 | public List getHivemates() {↵
|
20 | return salespersons;↵ | | 27 | return hivemates;↵
|
21 | }↵ | | 28 | }↵
|
|
22 | public void setSalespersons(Set salespersons) {↵ | | 29 | public void set↵
|
23 | this.salespersons = salesperson↵ | | 30 | Hivemates(List hivemates) {↵
|
24 | s;↵ | | 31 | this.hivemates = hivemates;↵
|
25 | | | 32 |
|