1 | public class Bid {↵ | | 1 | public class Address {
↵
|
2 | private Long id;↵ | | 2 | private Long id;
↵
|
3 | private Auction item;↵ | | 3 | private ↵
|
4 | private BigDecimal amount;↵ | | |
|
5 | private boolean successful;↵ | | |
|
6 | private Date datetime; ↵ | | |
|
| | | 4 | String address;↵
|
| | | 5 | private String zip;↵
|
| | | 6 | private String country;↵
|
| | | 7 | private Person person;↵
|
| | | 8 | /**↵
|
| | | 9 | * @return Returns the id.↵
|
| | | 10 | */
↵
|
7 | public Long getId() {↵ | | 11 | public Long getId() {
↵
|
8 | return id;↵ | | 12 | return id;
↵
|
9 | }↵ | | 13 | }↵
|
| | | 14 | /**↵
|
| | | 15 | * @param id The id to set.↵
|
| | | 16 | */
↵
|
10 | public void setId(Long id) {↵ | | 17 | public void setId(Long id) {
↵
|
11 | this.id = id;↵ | | 18 | this.id = id;
↵
|
12 | }↵ | | 19 | }↵
|
13 | public BigDecimal getAmount↵ | | |
|
| | | 20 | /**↵
|
| | | 21 | * @return Returns the person.↵
|
| | | 22 | */↵
|
14 | () {↵ | | 23 | public Person getPerson() {
↵
|
15 | return amount;↵ | | 24 | return ↵
|
16 | }↵ | | |
|
17 | public void setAmount(BigDecimal amount↵ | | 25 | person;↵
|
| | | 26 | }↵
|
| | | 27 | /**↵
|
| | | 28 | * @param person The person to set.↵
|
| | | 29 | */↵
|
18 | ) {↵ | | 30 | public void setPerson(Person person) {
↵
|
19 | this.amount = amount;↵ | | 31 | this.↵
|
20 | }↵ | | |
|
21 | public Auction getItem↵ | | 32 | person = person;↵
|
| | | 33 | }↵
|
| | | 34 | /**↵
|
| | | 35 | * @return Returns the address.↵
|
| | | 36 | */↵
|
22 | () {↵ | | 37 | public String getAddress() {
↵
|
23 | return item;↵ | | 38 | return ↵
|
24 | }↵ | | |
|
25 | public void setItem(Auction item↵ | | 39 | address;↵
|
| | | 40 | }↵
|
| | | 41 | /**↵
|
| | | 42 | * @param address The address to set.↵
|
| | | 43 | */↵
|
26 | ) {↵ | | 44 | public void setAddress(String address) {
↵
|
27 | this.item = item;↵ | | 45 | this.↵
|
28 | }↵ | | |
|
29 | public boolean isSuccessful↵ | | 46 | address = address;↵
|
| | | 47 | }↵
|
| | | 48 | /**↵
|
| | | 49 | * @return Returns the country.↵
|
| | | 50 | */↵
|
30 | () {↵ | | 51 | public String getCountry() {
↵
|
31 | return successful;↵ | | 52 | return ↵
|
32 | }↵ | | |
|
33 | public void setSuccessful(boolean successful↵ | | 53 | country;↵
|
| | | 54 | }↵
|
| | | 55 | /**↵
|
| | | 56 | * @param country The country to set.↵
|
| | | 57 | */↵
|
34 | ) {↵ | | 58 | public void setCountry(String country) {
↵
|
35 | this.successful = successful;↵ | | 59 | this.↵
|
36 | }↵ | | |
|
37 | public Date getDatetime↵ | | 60 | country = country;↵
|
| | | 61 | }↵
|
| | | 62 | /**↵
|
| | | 63 | * @return Returns the zip.↵
|
| | | 64 | */↵
|
38 | () {↵ | | 65 | public String getZip() {
↵
|
39 | return datetime;↵ | | 66 | return ↵
|
40 | }↵ | | |
|
41 | public void setDatetime(Date datetime↵ | | 67 | zip;↵
|
| | | 68 | }↵
|
| | | 69 | /**↵
|
| | | 70 | * @param zip The zip to set.↵
|
| | | 71 | */↵
|
42 | ) {↵ | | 72 | public void setZip(String zip) {
↵
|
43 | this.datetime = datetime | | 73 | this.zip = zip
|