1 | public class Auction {↵ | | 1 | public class Address implements Serializable {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String description;↵ | | 3 | private String ↵
|
4 | private List bids = new ArrayList();↵ | | |
|
5 | private Bid successfulBid;↵ | | |
|
6 | private Date end;↵ | | |
|
7 | ↵ | | 4 | address;↵
|
| | | 5 | private String zip;↵
|
| | | 6 | private String country;↵
|
| | | 7 | private Person person;↵
|
| | | 8 | /**↵
|
| | | 9 | * @return Returns the id.↵
|
| | | 10 | */↵
|
8 | public Date getEnd() {↵ | | 11 | public Long getId() {↵
|
9 | return end;↵ | | 12 | return id;↵
|
10 | }↵ | | 13 | }↵
|
11 | ↵ | | 14 | /**↵
|
| | | 15 | * @param id The id to set.↵
|
| | | 16 | */↵
|
12 | public void setEnd(Date end) {↵ | | 17 | public void setId(Long id) {↵
|
13 | this.end = end;↵ | | 18 | this.id = id;↵
|
14 | }↵ | | 19 | }↵
|
15 | ↵ | | 20 | /**↵
|
| | | 21 | * @return Returns the person.↵
|
| | | 22 | */↵
|
16 | public List getBids() {↵ | | 23 | public ↵
|
17 | return bids;↵ | | |
|
18 | }↵ | | |
|
19 | public void setBids(List bids) {↵ | | |
|
20 | this.bids = bids;↵ | | |
|
21 | }↵ | | 24 | Person getPerson() {↵
|
| | | 25 | return person;↵
|
| | | 26 | }↵
|
| | | 27 | /**↵
|
| | | 28 | * @param person The person to set.↵
|
| | | 29 | */↵
|
| | | 30 | public void setPerson(Person person) {↵
|
| | | 31 | this.person = person;↵
|
| | | 32 | }↵
|
| | | 33 | /**↵
|
| | | 34 | * @return Returns the address.↵
|
| | | 35 | */↵
|
22 | public String getDescription() {↵ | | 36 | public String getAddress() {↵
|
23 | return description;↵ | | 37 | return ↵
|
24 | }↵ | | 38 | address;↵
|
| | | 39 | }↵
|
| | | 40 | /**↵
|
| | | 41 | * @param address The address to set.↵
|
| | | 42 | */↵
|
25 | public void setDescription(String description) {↵ | | 43 | public void set↵
|
26 | this.description = description;↵ | | |
|
27 | }↵ | | 44 | Address(String address) {↵
|
| | | 45 | this.address = address;↵
|
| | | 46 | }↵
|
| | | 47 | /**↵
|
| | | 48 | * @return Returns the country.↵
|
| | | 49 | */↵
|
28 | public Long getId() {↵ | | 50 | public String getCountry() {↵
|
29 | return id;↵ | | 51 | return ↵
|
30 | }↵ | | |
|
31 | public void setId(Long id) {↵ | | |
|
32 | this.id = id;↵ | | |
|
33 | }↵ | | |
|
34 | public Bid getSuccessfulBid() {↵ | | |
|
35 | return successfulBid;↵ | | |
|
36 | }↵ | | |
|
37 | public void setSuccessfulBid(Bid successfulBid) {↵ | | |
|
38 | this.successfulBid = successfulBid | | 52 | country;↵
|
| | | 53 | }↵
|
| | | 54 | /**↵
|
| | | 55 | * @param country The country to set.↵
|
| | | 56 | */↵
|
| | | 57 | public void setCountry(String country) {↵
|
| | | 58 | this.country = country;↵
|
| | | 59 | }↵
|
| | | 60 | /**↵
|
| | | 61 | * @return Returns the zip.↵
|
| | | 62 | */↵
|
| | | 63 | public String getZip() {↵
|
| | | 64 | return zip;↵
|
| | | 65 | }↵
|
| | | 66 | /**↵
|
| | | 67 | * @param zip The zip to set.↵
|
| | | 68 | */↵
|
| | | 69 | public void setZip(String zip) {↵
|
| | | 70 | this.zip = zip
|