Commit 9ca7ef64 by Tuomas Riihimäki

Created some constructors missed in refactoring

1 parent b5b248f9
......@@ -97,6 +97,10 @@ public class CompoEntry extends GenericEventChild {
this.name = entryName;
}
public CompoEntry(LanEvent event) {
super(event);
}
public Calendar getCreated() {
return created;
}
......
......@@ -75,6 +75,10 @@ public class Discount extends GenericEventChild {
@ManyToMany(mappedBy = "discounts")
private List<Product> products;
public Discount(LanEvent ev) {
super(ev);
}
public BigDecimal getAmountMin() {
return amountMin;
}
......
......@@ -57,6 +57,10 @@ public class EventMap extends GenericEventChild {
@Lob
private String notes;
public EventMap(LanEvent event) {
super(event);
}
public String getName() {
return name;
}
......
......@@ -32,6 +32,15 @@ public class EventStatus extends GenericEntity {
@OneToMany(cascade = CascadeType.ALL, mappedBy = "status")
private List<LanEvent> events;
public EventStatus() {
super();
};
public EventStatus(String name) {
super();
this.name = name;
}
public String getName() {
return name;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!