-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWine.java
104 lines (83 loc) · 1.99 KB
/
Wine.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package winecellar;
public class Wine {
private Long wineId;
private String name;
private String country;
private String county;
private String type;
private String color;
private int year;
private double price;
public Wine(Long wineId, String name ,String country , String county , String type ,String color , int year, double price) {
this.wineId = wineId;
this.name = name;
this.country = country;
this.county = county;
this.type = type;
this.color = color;
this.year = year;
this.price = price;
}
public Wine(String name ,String country , String county , String type ,String color , int year, double price) {
this.name = name;
this.country = country;
this.county = county;
this.type = type;
this.color = color;
this.year = year;
this.price = price;
}
public Long getWineId() {
return wineId;
}
public void setWineId(Long wineId) {
this.wineId = wineId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getCounty() {
return county;
}
public void setCounty(String county) {
this.county = county;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public int getYear() {
return year;
}
public void setYear(int year) {
this.year = year;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
@Override
public String toString() {
return "wine [wineId=" + wineId + ", name=" + name + ", country=" + country + ", county=" + county + ", type="
+ type + ", color=" + color + ", year=" + year + ", price=" + price + "]";
}
}