1 | public class Auction {↵ | | 1 | public class Employee {
↵
|
2 | private Long id;↵ | | 2 | private Long id;
↵
|
3 | private String description;↵ | | 3 | private Person person;
↵
|
4 | private List bids = new ArrayList();↵ | | 4 | private ↵
|
5 | private Bid successfulBid;↵ | | |
|
6 | private Date end;↵ | | |
|
7 | ↵ | | 5 | Date hireDate;↵
|
| | | 6 | private OptionalComponent optionalComponent;↵
|
| | | 7 | private Set directReports = new HashSet();↵
|
| | | 8 |
↵
|
8 | public Date getEnd() {↵ | | 9 | public Long getId() {
↵
|
9 | return end;↵ | | 10 | return id;
↵
|
10 | }↵ | | 11 | }↵
|
| | | 12 |
↵
|
11 | public void setEnd(Date end) {↵ | | 13 | public void setId(Long id) {
↵
|
12 | this.end = end;↵ | | 14 | this.id = id;
↵
|
13 | }↵ | | 15 | }↵
|
| | | 16 |
↵
|
14 | public List getBids() {↵ | | 17 | public Person getPerson() {
↵
|
15 | return bids;↵ | | 18 | return ↵
|
16 | }↵ | | 19 | person;↵
|
| | | 20 | }↵
|
| | | 21 |
↵
|
17 | public void setBids(List bids) {↵ | | 22 | public void setPerson(Person person) {
↵
|
18 | this.bids = bids;↵ | | 23 | this.↵
|
19 | }↵ | | 24 | person = person;↵
|
| | | 25 | }↵
|
| | | 26 |
↵
|
20 | public String getDescription() {↵ | | 27 | public Date getHireDate() {
↵
|
21 | return description;↵ | | 28 | return ↵
|
22 | }↵ | | 29 | hireDate;↵
|
| | | 30 | }↵
|
| | | 31 |
↵
|
23 | public void setDescription(String description) {↵ | | 32 | public void setHireDate(Date hireDate) {
↵
|
24 | this.description = description;↵ | | 33 | this.↵
|
25 | }↵ | | |
|
26 | public Long getId↵ | | 34 | hireDate = hireDate;↵
|
| | | 35 | }↵
|
|
27 | () {↵ | | 36 | public OptionalComponent getOptionalComponent() {
↵
|
28 | return id;↵ | | 37 | return ↵
|
29 | }↵ | | |
|
30 | public void setId(Long id↵ | | 38 | optionalComponent;↵
|
| | | 39 | }↵
|
|
31 | ) {↵ | | 40 | public void setOptionalComponent(OptionalComponent optionalComponent) {
↵
|
32 | this.id = id;↵ | | 41 | this.↵
|
33 | }↵ | | 42 | optionalComponent = optionalComponent;↵
|
| | | 43 | }↵
|
| | | 44 |
↵
|
34 | public Bid getSuccessfulBid() {↵ | | 45 | public Set getDirectReports() {
↵
|
35 | return successfulBid;↵ | | 46 | return ↵
|
36 | }↵ | | |
|
37 | public void setSuccessfulBid(Bid successfulBid↵ | | 47 | directReports;↵
|
| | | 48 | }↵
|
|
38 | ) {↵ | | 49 | public void setDirectReports(Set directReports) {
↵
|
39 | this.successfulBid = successfulBid | | 50 | this.directReports = directReports
|