1 | public class Part implements Serializable {↵ | | 1 | public class Item {↵
|
|
2 | private String name;↵ | | 2 | private String code;↵
|
3 | private String description;↵ | | 3 | private ↵
|
|
4 | public Part() {↵ | | |
|
5 | }↵ | | |
|
|
6 | public Part(String name) {↵ | | |
|
7 | this.name = name;↵ | | |
|
8 | }↵ | | |
|
| | | 4 | Product product;↵
|
| | | 5 | ↵
|
| | | 6 | ↵
|
| | | 7 | Item() {}↵
|
9 | public Part(String name, String description) {↵ | | 8 | public Item(String code, Product p) {↵
|
10 | this.name = name;↵ | | 9 | this.code = code;↵
|
11 | this.description = description;↵ | | 10 | this.product = p;↵
|
12 | }↵ | | 11 | }↵
|
|
13 | public String getName() {↵ | | 12 | public String getCode() {↵
|
14 | return name;↵ | | 13 | return code;↵
|
15 | }↵ | | 14 | }↵
|
| | | 15 | ↵
|
16 | public String getDescription↵ | | 16 | public void setCode(String code) {↵
|
| | | 17 | this.code = code;↵
|
| | | 18 | }↵
|
| | | 19 | ↵
|
17 | () {↵ | | 20 | public Product getProduct() {↵
|
18 | return description;↵ | | 21 | return product;↵
|
19 | }↵ | | 22 | }↵
|
| | | 23 | ↵
|
20 | public void setDescription(String description) {↵ | | 24 | public void set↵
|
21 | this.description = description↵ | | 25 | Product(Product product) {↵
|
22 | ;↵ | | 26 | this.product = product;↵
|
23 | | | 27 |
|