1 | public class Product {↵ | | 1 | public class Parent {↵
|
2 | private String productId;↵ | | 2 | private long id;↵
|
3 | private String description;↵ | | 3 | private ↵
|
4 | private BigDecimal price;↵ | | |
|
5 | private int numberAvailable;↵ | | |
|
6 | private int numberOrdered;↵ | | |
|
7 | /**↵ | | |
|
8 | * @return Returns the description.↵ | | |
|
9 | */↵ | | 4 | int count;↵
|
| | | 5 | private Child child;↵
|
| | | 6 | private Object any;↵
|
| | | 7 | private int x;↵
|
| | | 8 | ↵
|
10 | public String getDescription() {↵ | | 9 | public int getX() {↵
|
11 | return description;↵ | | 10 | return ↵
|
12 | }↵ | | |
|
13 | /**↵ | | |
|
14 | * @param description The description to set.↵ | | |
|
15 | */↵ | | |
|
16 | public void setDescription(String description) {↵ | | |
|
17 | this.description = description;↵ | | |
|
18 | }↵ | | |
|
19 | /**↵ | | |
|
20 | * @return Returns the numberAvailable.↵ | | |
|
21 | */↵ | | 11 | x;↵
|
| | | 12 | }↵
|
| | | 13 | public void setX(int x) {↵
|
| | | 14 | this.x = x;↵
|
| | | 15 | }↵
|
| | | 16 | ↵
|
22 | public int getNumberAvailable() {↵ | | 17 | public int get↵
|
23 | return numberAvailable;↵ | | |
|
24 | }↵ | | |
|
25 | /**↵ | | |
|
26 | * @param numberAvailable The numberAvailable to set.↵ | | |
|
27 | */↵ | | |
|
28 | public void setNumberAvailable(int numberAvailable) {↵ | | |
|
29 | this.numberAvailable = numberAvailable;↵ | | |
|
30 | }↵ | | |
|
31 | /**↵ | | |
|
32 | * @return Returns the numberOrdered.↵ | | |
|
33 | */↵ | | |
|
34 | public int getNumberOrdered() {↵ | | |
|
35 | return numberOrdered;↵ | | |
|
36 | }↵ | | |
|
37 | /**↵ | | |
|
38 | * @param numberOrdered The numberOrdered to set.↵ | | |
|
39 | */↵ | | |
|
40 | public void setNumberOrdered(int numberOrdered) {↵ | | |
|
41 | this.numberOrdered = numberOrdered;↵ | | |
|
42 | }↵ | | |
|
43 | /**↵ | | |
|
44 | * @return Returns the productId.↵ | | |
|
45 | */↵ | | |
|
46 | public String getProductI↵ | | 18 | Count() {↵
|
| | | 19 | return count;↵
|
| | | 20 | }↵
|
| | | 21 | ↵
|
| | | 22 | ↵
|
| | | 23 | public long getId() {↵
|
| | | 24 | return id;↵
|
| | | 25 | }↵
|
| | | 26 | ↵
|
| | | 27 | ↵
|
| | | 28 | public void setCount(int count) {↵
|
| | | 29 | this.count = count;↵
|
| | | 30 | }↵
|
| | | 31 | ↵
|
| | | 32 | ↵
|
| | | 33 | public void setId(long id) {↵
|
| | | 34 | this.id = id;↵
|
| | | 35 | }↵
|
| | | 36 | ↵
|
| | | 37 | ↵
|
47 | d() {↵ | | 38 | public Child getChild() {↵
|
48 | return productId;↵ | | 39 | return ↵
|
49 | }↵ | | |
|
50 | /**↵ | | |
|
51 | * @param productId The productId to set.↵ | | |
|
52 | */↵ | | |
|
53 | public void setProductId(String productId) {↵ | | |
|
54 | this.productId = productId;↵ | | |
|
55 | }↵ | | |
|
56 | /**↵ | | |
|
57 | * @return Returns the price.↵ | | |
|
58 | */↵ | | |
|
59 | public BigDecimal getPrice() {↵ | | |
|
60 | return price;↵ | | |
|
61 | }↵ | | |
|
62 | /**↵ | | |
|
63 | * @param price The price to set.↵ | | |
|
64 | */↵ | | |
|
65 | public void setPrice(BigDecimal price) {↵ | | |
|
66 | this.price = price↵ | | 40 | child;↵
|
| | | 41 | }↵
|
| | | 42 | ↵
|
| | | 43 | ↵
|
| | | 44 | public void setChild(Child child) {↵
|
| | | 45 | this.child = child;↵
|
| | | 46 | }↵
|
| | | 47 | ↵
|
| | | 48 | public Object getAny() {↵
|
| | | 49 | return any;↵
|
| | | 50 | }↵
|
|
| | | 51 | public void setAny(Object any) {↵
|
67 | ;↵ | | 52 | this.any = any;↵
|
68 | | | 53 |
|