-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCellar.java
50 lines (37 loc) · 916 Bytes
/
Cellar.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
package winecellar;
public class Cellar {
private Long cellarId;
private Long wineId;
private int bottleNb;
public Cellar(Long cellarId, Long wineId, int bottleNb) {
this.cellarId = cellarId;
this.wineId = wineId;
this.bottleNb = bottleNb;
}
public Cellar(Long wineId, int bottleNb) {
this.wineId = wineId;
this.bottleNb = bottleNb;
}
public Long getCellarId() {
return cellarId;
}
public void setCellarId(Long cellarId) {
this.cellarId = cellarId;
}
public Long getWineId() {
return wineId;
}
public void setWineId(Long wineId) {
this.wineId = wineId;
}
public int getBottleNb() {
return bottleNb;
}
public void setBottleNb(int bottleNb) {
this.bottleNb = bottleNb;
}
@Override
public String toString() {
return "Cellar [cellarId=" + cellarId + ", wineId=" + wineId + ", bottleNb=" + bottleNb + "]";
}
}