1 | public class Bid {↵ | | 1 | public class Product {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private Auction item↵ | | 3 | String productId;↵
|
4 | ;↵ | | 4 | private String description;↵
|
5 | private BigDecimal amount;↵ | | 5 | private BigDecimal price;↵
|
6 | private boolean successful;↵ | | 6 | private ↵
|
7 | private Date datetime; ↵ | | |
|
| | | 7 | int numberAvailable;↵
|
| | | 8 | private int numberOrdered;↵
|
| | | 9 | /**↵
|
| | | 10 | * @return Returns the description.↵
|
| | | 11 | */↵
|
8 | public Long getId() {↵ | | 12 | public String getDescription() {↵
|
9 | return id;↵ | | 13 | return ↵
|
10 | }↵ | | |
|
11 | public void setId(Long id) {↵ | | |
|
12 | this.id = id;↵ | | |
|
13 | }↵ | | |
|
14 | public BigDecimal getAmount() {↵ | | |
|
15 | return amount;↵ | | |
|
16 | }↵ | | |
|
17 | public void setAmount(BigDecimal amount) {↵ | | |
|
18 | this.amount = amount;↵ | | |
|
19 | }↵ | | |
|
20 | public Auction getItem() {↵ | | |
|
21 | return item;↵ | | |
|
22 | }↵ | | |
|
23 | public void setItem(Auction item) {↵ | | |
|
24 | this.item = item;↵ | | |
|
25 | }↵ | | |
|
26 | public boolean isSuccessful() {↵ | | |
|
27 | return successful;↵ | | |
|
28 | }↵ | | |
|
29 | public void setSuccessful(boolean successful) {↵ | | |
|
30 | this.successful = successful;↵ | | |
|
31 | }↵ | | |
|
32 | public Date getDatetime() {↵ | | |
|
33 | return datetime;↵ | | |
|
34 | }↵ | | |
|
35 | public void setDatetime(Date datetime) {↵ | | |
|
36 | this.datetime = datetim↵ | | 14 | description;↵
|
| | | 15 | }↵
|
| | | 16 | /**↵
|
| | | 17 | * @param description The description to set.↵
|
| | | 18 | */↵
|
| | | 19 | public void setDescription(String description) {↵
|
| | | 20 | this.description = description;↵
|
| | | 21 | }↵
|
| | | 22 | /**↵
|
| | | 23 | * @return Returns the numberAvailable.↵
|
| | | 24 | */↵
|
| | | 25 | public int getNumberAvailable() {↵
|
| | | 26 | return numberAvailable;↵
|
| | | 27 | }↵
|
| | | 28 | /**↵
|
| | | 29 | * @param numberAvailable The numberAvailable to set.↵
|
| | | 30 | */↵
|
| | | 31 | public void setNumberAvailable(int numberAvailable) {↵
|
| | | 32 | this.numberAvailable = numberAvailable;↵
|
| | | 33 | }↵
|
| | | 34 | /**↵
|
| | | 35 | * @return Returns the numberOrdered.↵
|
| | | 36 | */↵
|
| | | 37 | public int getNumberOrdered() {↵
|
| | | 38 | return numberOrdered;↵
|
| | | 39 | }↵
|
| | | 40 | /**↵
|
| | | 41 | * @param numberOrdered The numberOrdered to set.↵
|
| | | 42 | */↵
|
| | | 43 | public void setNumberOrdered(int numberOrdered) {↵
|
| | | 44 | this.numberOrdered = numberOrdered;↵
|
| | | 45 | }↵
|
| | | 46 | /**↵
|
| | | 47 | * @return Returns the productId.↵
|
| | | 48 | */↵
|
| | | 49 | public String getProductId() {↵
|
| | | 50 | return productId;↵
|
| | | 51 | }↵
|
| | | 52 | /**↵
|
| | | 53 | * @param productId The productId to set.↵
|
| | | 54 | */↵
|
| | | 55 | public void setProductId(String productId) {↵
|
| | | 56 | this.productId = productId;↵
|
| | | 57 | }↵
|
| | | 58 | /**↵
|
| | | 59 | * @return Returns the price.↵
|
| | | 60 | */↵
|
| | | 61 | public BigDecimal getPrice() {↵
|
| | | 62 | return price;↵
|
| | | 63 | }↵
|
| | | 64 | /**↵
|
| | | 65 | * @param price The price to set.↵
|
| | | 66 | */↵
|
| | | 67 | public void setPrice(BigDecimal price) {↵
|
37 | e | | 68 | this.price = price
|