Foodwave.java
1.72 KB
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
package fi.insomnia.intra.db;
import fi.insomnia.intra.db.BaseEntity;
import java.io.Serializable;
import java.util.Calendar;
import java.util.List;
import javax.persistence.*;
import static javax.persistence.TemporalType.TIMESTAMP;
/**
* Entity implementation class for Entity: Foodwave
*
*/
@Entity
@NamedQueries(value = { @NamedQuery(name = "findAllFoodwaves", query = "select f from Fooodwave f"),
@NamedQuery(name = "countAllFoodwaves", query = "select count(f) as ret from Fooodwave f") })
public class Foodwave extends BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;
public Foodwave() {
super();
}
private String name;
private String description;
@Temporal(value=TIMESTAMP)
private Calendar time;
private boolean closed;
@OneToMany(mappedBy="wave")
private List<FoodwaveOrder> orders;
@ManyToMany(mappedBy = "waves")
private List<FoodwaveElement> elements;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Calendar getTime() {
return time;
}
public void setTime(Calendar time) {
this.time = time;
}
public boolean isClosed() {
return closed;
}
public void setClosed(boolean closed) {
this.closed = closed;
}
public List<FoodwaveOrder> getOrders() {
return orders;
}
public void setOrders(List<FoodwaveOrder> orders) {
this.orders = orders;
}
public List<FoodwaveElement> getElements() {
return elements;
}
public void setElements(List<FoodwaveElement> elements) {
this.elements = elements;
}
}