Commit 9ca7ef64 by Tuomas Riihimäki

Created some constructors missed in refactoring

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