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