1 | public class Product {↵ | | 1 | public class ↵
|
2 | private String productId;↵ | | |
|
3 | private String description;↵ | | |
|
4 | private BigDecimal price↵ | | 2 | Detail implements Serializable {↵
|
| | | 3 | private Long id;↵
|
| | | 4 | private Master master;↵
|
5 | ;↵ | | 5 | private int version;↵
|
6 | private int numberAvailable;↵ | | 6 | private ↵
|
7 | private int numberOrdered;↵ | | |
|
8 | /**↵ | | |
|
9 | * @return Returns the descript↵ | | 7 | String details;↵
|
10 | ion.↵ | | 8 | private boolean currentVersion;↵
|
11 | */↵ | | 9 | ↵
|
12 | public String getDescription() {↵ | | 10 | public ↵
|
13 | return description;↵ | | |
|
14 | }↵ | | |
|
15 | /**↵ | | |
|
16 | * @param description The description to set.↵ | | |
|
17 | */↵ | | |
|
18 | public void setDescription(String descript↵ | | 11 | boolean isCurrentVersion() {↵
|
| | | 12 | return currentVersion;↵
|
| | | 13 | }↵
|
19 | ion) {↵ | | 14 | public void setCurrentVersion(boolean currentVersion) {↵
|
20 | this.description = description;↵ | | 15 | this.↵
|
21 | }↵ | | |
|
22 | /**↵ | | |
|
23 | * @return Returns the numberAvailable.↵ | | |
|
24 | */↵ | | 16 | currentVersion = currentVersion;↵
|
| | | 17 | }↵
|
25 | public int getNumberAvailable() {↵ | | 18 | public String get↵
|
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↵ | | 19 | Details() {↵
|
| | | 20 | return details;↵
|
| | | 21 | }↵
|
| | | 22 | public void setDetails(String details) {↵
|
| | | 23 | this.details = details;↵
|
| | | 24 | }↵
|
| | | 25 | public Long getId() {↵
|
| | | 26 | return id;↵
|
| | | 27 | }↵
|
| | | 28 | public void setId(Long id) {↵
|
| | | 29 | this.id = id;↵
|
| | | 30 | }↵
|
| | | 31 | public Master getMaster() {↵
|
| | | 32 | return master;↵
|
| | | 33 | }↵
|
| | | 34 | public void setMaster(Master master) {↵
|
| | | 35 | this.master = master;↵
|
| | | 36 | }↵
|
| | | 37 | public int getVersion() {↵
|
| | | 38 | return version;↵
|
| | | 39 | }↵
|
68 | ) {↵ | | 40 | public void setVersion(int version) {↵
|
69 | this.price = price;↵ | | 41 | this.version = version;↵
|
70 | | | 42 |
|