Commit 182f8ab5 by Juho Juopperi

removed :id fetches

1 parent c10849e0
Showing with 913 additions and 915 deletions
......@@ -24,7 +24,7 @@ import javax.persistence.Version;
@Table(name = "access_rights")
@NamedQueries( {
@NamedQuery(name = "AccessRight.findAll", query = "SELECT a FROM AccessRight a"),
@NamedQuery(name = "AccessRight.findById", query = "SELECT a FROM AccessRight a WHERE a.id = :id"),
@NamedQuery(name = "AccessRight.findByName", query = "SELECT a FROM AccessRight a WHERE a.name = :name") })
public class AccessRight implements ModelInterface {
private static final long serialVersionUID = 1L;
......
......@@ -29,12 +29,12 @@ import javax.persistence.Version;
@Entity
@Table(name = "account_events")
@NamedQueries( {
@NamedQuery(name = "AccountEvent.findAll", query = "SELECT a FROM AccountEvent a"),
@NamedQuery(name = "AccountEvent.findById", query = "SELECT a FROM AccountEvent a WHERE a.id = :id"),
@NamedQuery(name = "AccountEvent.findByUnitPrice", query = "SELECT a FROM AccountEvent a WHERE a.unitPrice = :unitPrice"),
@NamedQuery(name = "AccountEvent.findByUnits", query = "SELECT a FROM AccountEvent a WHERE a.units = :units"),
@NamedQuery(name = "AccountEvent.findByEventTime", query = "SELECT a FROM AccountEvent a WHERE a.eventTime = :eventTime"),
@NamedQuery(name = "AccountEvent.findByDelivered", query = "SELECT a FROM AccountEvent a WHERE a.delivered = :delivered") })
@NamedQuery(name = "AccountEvent.findAll", query = "SELECT a FROM AccountEvent a"),
@NamedQuery(name = "AccountEvent.findByUnitPrice", query = "SELECT a FROM AccountEvent a WHERE a.unitPrice = :unitPrice"),
@NamedQuery(name = "AccountEvent.findByUnits", query = "SELECT a FROM AccountEvent a WHERE a.units = :units"),
@NamedQuery(name = "AccountEvent.findByEventTime", query = "SELECT a FROM AccountEvent a WHERE a.eventTime = :eventTime"),
@NamedQuery(name = "AccountEvent.findByDelivered", query = "SELECT a FROM AccountEvent a WHERE a.delivered = :delivered") })
public class AccountEvent implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -84,145 +84,145 @@ public class AccountEvent implements ModelInterface {
@Override
public Integer getId() {
return id;
return id;
}
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
public AccountEvent() {
}
public AccountEvent(Integer accountEventsId) {
this.id = accountEventsId;
this.id = accountEventsId;
}
public AccountEvent(Integer accountEventsId, BigDecimal unitPrice,
BigDecimal unitCount, Date eventTime) {
this.id = accountEventsId;
this.setUnitPrice(unitPrice);
this.setUnits(unitCount);
this.eventTime = eventTime;
BigDecimal unitCount, Date eventTime) {
this.id = accountEventsId;
this.setUnitPrice(unitPrice);
this.setUnits(unitCount);
this.eventTime = eventTime;
}
public Date getEventTime() {
return eventTime;
return eventTime;
}
public void setEventTime(Date eventTime) {
this.eventTime = eventTime;
this.eventTime = eventTime;
}
public Date getDelivered() {
return delivered;
return delivered;
}
public void setDelivered(Date delivered) {
this.delivered = delivered;
this.delivered = delivered;
}
public User getUser() {
return user;
return user;
}
public void setUser(User usersId) {
this.user = usersId;
this.user = usersId;
}
public List<DiscountInstance> getDiscountInstances() {
return discountInstances;
return discountInstances;
}
public void setDiscountInstances(List<DiscountInstance> discountInstanceList) {
this.discountInstances = discountInstanceList;
this.discountInstances = discountInstanceList;
}
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the
// id fields are
// not set
if (!(object instanceof AccountEvent)) {
return false;
}
AccountEvent other = (AccountEvent) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the
// id fields are
// not set
if (!(object instanceof AccountEvent)) {
return false;
}
AccountEvent other = (AccountEvent) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.AccountEvent[id=" + id + "]";
return "fi.insomnia.bortal.model.AccountEvent[id=" + id + "]";
}
public void setFoodWave(FoodWave foodWave) {
this.foodWave = foodWave;
this.foodWave = foodWave;
}
public FoodWave getFoodWave() {
return foodWave;
return foodWave;
}
public void setProduct(Product product) {
this.product = product;
this.product = product;
}
public Product getProduct() {
return product;
return product;
}
public void setSeller(User seller) {
this.seller = seller;
this.seller = seller;
}
public User getSeller() {
return seller;
return seller;
}
public void setBill(Bill bill) {
this.bill = bill;
this.bill = bill;
}
public Bill getBill() {
return bill;
return bill;
}
public void setUnitPrice(BigDecimal unitPrice) {
this.unitPrice = unitPrice;
this.unitPrice = unitPrice;
}
public BigDecimal getUnitPrice() {
return unitPrice;
return unitPrice;
}
public void setUnits(BigDecimal units) {
this.units = units;
this.units = units;
}
public BigDecimal getUnits() {
return units;
return units;
}
}
......@@ -30,7 +30,7 @@ import javax.persistence.Version;
@NamedQueries( {
@NamedQuery(name = "Bill.findAll", query = "SELECT b FROM Bill b"),
// @NamedQuery(name = "Bill.findById", query =
// "SELECT b FROM Bill b WHERE id = :id"),
@NamedQuery(name = "Bill.findByDueDate", query = "SELECT b FROM Bill b WHERE b.dueDate = :dueDate"),
@NamedQuery(name = "Bill.findByPaidDate", query = "SELECT b FROM Bill b WHERE b.paidDate = :paidDate"),
@NamedQuery(name = "Bill.findByReferenceNumber", query = "SELECT b FROM Bill b WHERE b.referenceNumber = :referenceNumber"),
......
......@@ -23,12 +23,12 @@ import javax.persistence.Version;
@Entity
@Table(name = "bill_lines")
@NamedQueries( {
@NamedQuery(name = "BillLine.findAll", query = "SELECT b FROM BillLine b"),
@NamedQuery(name = "BillLine.findById", query = "SELECT b FROM BillLine b WHERE id = :id"),
@NamedQuery(name = "BillLine.findByProduct", query = "SELECT b FROM BillLine b WHERE b.product = :name"),
@NamedQuery(name = "BillLine.findByUnits", query = "SELECT b FROM BillLine b WHERE b.units = :units"),
@NamedQuery(name = "BillLine.findByUnitPrice", query = "SELECT b FROM BillLine b WHERE b.unitPrice = :unitPrice"),
@NamedQuery(name = "BillLine.findByVat", query = "SELECT b FROM BillLine b WHERE b.vat = :vat") })
@NamedQuery(name = "BillLine.findAll", query = "SELECT b FROM BillLine b"),
@NamedQuery(name = "BillLine.findByProduct", query = "SELECT b FROM BillLine b WHERE b.product = :name"),
@NamedQuery(name = "BillLine.findByUnits", query = "SELECT b FROM BillLine b WHERE b.units = :units"),
@NamedQuery(name = "BillLine.findByUnitPrice", query = "SELECT b FROM BillLine b WHERE b.unitPrice = :unitPrice"),
@NamedQuery(name = "BillLine.findByVat", query = "SELECT b FROM BillLine b WHERE b.vat = :vat") })
public class BillLine implements ModelInterface {
private static final long serialVersionUID = 1L;
@Id
......@@ -59,103 +59,103 @@ public class BillLine implements ModelInterface {
}
public BillLine(Integer billLinesId) {
this.id = billLinesId;
this.id = billLinesId;
}
public BillLine(Integer billLinesId, String product, BigDecimal units,
BigDecimal unitPrice, BigDecimal vat) {
this.id = billLinesId;
this.name = product;
this.setUnits(units);
this.setUnitPrice(unitPrice);
this.setVat(vat);
BigDecimal unitPrice, BigDecimal vat) {
this.id = billLinesId;
this.name = product;
this.setUnits(units);
this.setUnitPrice(unitPrice);
this.setVat(vat);
}
public String getName() {
return name;
return name;
}
public void setName(String product) {
this.name = product;
this.name = product;
}
public Bill getBill() {
return bill;
return bill;
}
public void setBill(Bill billsId) {
this.bill = billsId;
this.bill = billsId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof BillLine)) {
return false;
}
BillLine other = (BillLine) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof BillLine)) {
return false;
}
BillLine other = (BillLine) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.BillLine[id=" + id + "]";
return "fi.insomnia.bortal.model.BillLine[id=" + id + "]";
}
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
@Override
public Integer getId() {
return id;
return id;
}
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
public void setUnits(BigDecimal units) {
this.units = units;
this.units = units;
}
public BigDecimal getUnits() {
return units;
return units;
}
public void setUnitPrice(BigDecimal price) {
this.unitPrice = price;
this.unitPrice = price;
}
public BigDecimal getUnitPrice() {
return unitPrice;
return unitPrice;
}
public void setVat(BigDecimal vat) {
this.vat = vat;
this.vat = vat;
}
public BigDecimal getVat() {
return vat;
return vat;
}
}
......@@ -26,7 +26,7 @@ import javax.persistence.Version;
@Table(name = "card_templates")
@NamedQueries( {
@NamedQuery(name = "CardTemplate.findAll", query = "SELECT c FROM CardTemplate c"),
@NamedQuery(name = "CardTemplate.findById", query = "SELECT c FROM CardTemplate c WHERE c.id = :id"),
@NamedQuery(name = "CardTemplate.findByName", query = "SELECT c FROM CardTemplate c WHERE c.name = :name") })
public class CardTemplate implements ModelInterface {
private static final long serialVersionUID = 1L;
......
......@@ -29,7 +29,7 @@ import javax.persistence.Version;
@Table(name = "compos")
@NamedQueries( {
@NamedQuery(name = "Compo.findAll", query = "SELECT c FROM Compo c"),
@NamedQuery(name = "Compo.findById", query = "SELECT c FROM Compo c WHERE c.id = :id"),
@NamedQuery(name = "Compo.findByName", query = "SELECT c FROM Compo c WHERE c.name = :name"),
@NamedQuery(name = "Compo.findByStartTime", query = "SELECT c FROM Compo c WHERE c.startTime = :startTime"),
@NamedQuery(name = "Compo.findByVoteStart", query = "SELECT c FROM Compo c WHERE c.voteStart = :voteStart"),
......
......@@ -30,7 +30,7 @@ import javax.persistence.Version;
@Table(name = "entries")
@NamedQueries( {
@NamedQuery(name = "CompoEntry.findAll", query = "SELECT c FROM CompoEntry c"),
@NamedQuery(name = "CompoEntry.findById", query = "SELECT c FROM CompoEntry c WHERE c.id = :id"),
@NamedQuery(name = "CompoEntry.findByCreated", query = "SELECT c FROM CompoEntry c WHERE c.created = :created"),
@NamedQuery(name = "CompoEntry.findByName", query = "SELECT c FROM CompoEntry c WHERE c.name = :name"),
@NamedQuery(name = "CompoEntry.findByNotes", query = "SELECT c FROM CompoEntry c WHERE c.notes = :notes"),
......
......@@ -27,7 +27,7 @@ import javax.persistence.Version;
@Table(name = "entry_files")
@NamedQueries( {
@NamedQuery(name = "CompoEntryFile.findAll", query = "SELECT c FROM CompoEntryFile c"),
@NamedQuery(name = "CompoEntryFile.findById", query = "SELECT c FROM CompoEntryFile c WHERE c.id = :id"),
@NamedQuery(name = "CompoEntryFile.findByMimeType", query = "SELECT c FROM CompoEntryFile c WHERE c.mimeType = :mimeType"),
@NamedQuery(name = "CompoEntryFile.findByFileName", query = "SELECT c FROM CompoEntryFile c WHERE c.fileName = :fileName"),
@NamedQuery(name = "CompoEntryFile.findByDescription", query = "SELECT c FROM CompoEntryFile c WHERE c.description = :description"),
......
......@@ -21,9 +21,9 @@ import javax.persistence.Version;
@Entity
@Table(name = "entry_participations")
@NamedQueries( {
@NamedQuery(name = "CompoEntryParticipant.findAll", query = "SELECT c FROM CompoEntryParticipant c"),
@NamedQuery(name = "CompoEntryParticipant.findById", query = "SELECT c FROM CompoEntryParticipant c WHERE c.id = :id"),
@NamedQuery(name = "CompoEntryParticipant.findByRole", query = "SELECT c FROM CompoEntryParticipant c WHERE c.role = :role") })
@NamedQuery(name = "CompoEntryParticipant.findAll", query = "SELECT c FROM CompoEntryParticipant c"),
@NamedQuery(name = "CompoEntryParticipant.findByRole", query = "SELECT c FROM CompoEntryParticipant c WHERE c.role = :role") })
public class CompoEntryParticipant implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -48,97 +48,97 @@ public class CompoEntryParticipant implements ModelInterface {
@Override
public Integer getId() {
return id;
return id;
}
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
public CompoEntry getEntry() {
return entry;
return entry;
}
public void setEntry(CompoEntry entry) {
this.entry = entry;
this.entry = entry;
}
public User getUsers() {
return users;
return users;
}
public void setUsers(User users) {
this.users = users;
this.users = users;
}
public CompoEntryParticipant() {
}
public CompoEntryParticipant(Integer entryParticipationsId) {
this.id = entryParticipationsId;
this.id = entryParticipationsId;
}
public String getRole() {
return role;
return role;
}
public void setRole(String role) {
this.role = role;
this.role = role;
}
public CompoEntry getEntriesId() {
return entry;
return entry;
}
public void setEntriesId(CompoEntry entriesId) {
this.entry = entriesId;
this.entry = entriesId;
}
public User getUsersId() {
return users;
return users;
}
public void setUsersId(User usersId) {
this.users = usersId;
this.users = usersId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof CompoEntryParticipant)) {
return false;
}
CompoEntryParticipant other = (CompoEntryParticipant) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof CompoEntryParticipant)) {
return false;
}
CompoEntryParticipant other = (CompoEntryParticipant) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.CompoEntryParticipant[entryParticipationsId="
+ id + "]";
return "fi.insomnia.bortal.model.CompoEntryParticipant[entryParticipationsId="
+ id + "]";
}
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
}
......@@ -25,16 +25,16 @@ import javax.persistence.Version;
@Entity
@Table(name = "discounts")
@NamedQueries( {
@NamedQuery(name = "Discount.findAll", query = "SELECT d FROM Discount d"),
@NamedQuery(name = "Discount.findById", query = "SELECT d FROM Discount d WHERE d.id = :id"),
@NamedQuery(name = "Discount.findByPercentage", query = "SELECT d FROM Discount d WHERE d.percentage = :percentage"),
@NamedQuery(name = "Discount.findByCode", query = "SELECT d FROM Discount d WHERE d.code = :code"),
@NamedQuery(name = "Discount.findByDetails", query = "SELECT d FROM Discount d WHERE d.details = :details"),
@NamedQuery(name = "Discount.findByAmountMin", query = "SELECT d FROM Discount d WHERE d.amountMin = :amountMin"),
@NamedQuery(name = "Discount.findByAmountMax", query = "SELECT d FROM Discount d WHERE d.amountMax = :amountMax"),
@NamedQuery(name = "Discount.findByActive", query = "SELECT d FROM Discount d WHERE d.active = :active"),
@NamedQuery(name = "Discount.findByMaxNum", query = "SELECT d FROM Discount d WHERE d.maxNum = :maxNum"),
@NamedQuery(name = "Discount.findByPerUser", query = "SELECT d FROM Discount d WHERE d.perUser = :perUser") })
@NamedQuery(name = "Discount.findAll", query = "SELECT d FROM Discount d"),
@NamedQuery(name = "Discount.findByPercentage", query = "SELECT d FROM Discount d WHERE d.percentage = :percentage"),
@NamedQuery(name = "Discount.findByCode", query = "SELECT d FROM Discount d WHERE d.code = :code"),
@NamedQuery(name = "Discount.findByDetails", query = "SELECT d FROM Discount d WHERE d.details = :details"),
@NamedQuery(name = "Discount.findByAmountMin", query = "SELECT d FROM Discount d WHERE d.amountMin = :amountMin"),
@NamedQuery(name = "Discount.findByAmountMax", query = "SELECT d FROM Discount d WHERE d.amountMax = :amountMax"),
@NamedQuery(name = "Discount.findByActive", query = "SELECT d FROM Discount d WHERE d.active = :active"),
@NamedQuery(name = "Discount.findByMaxNum", query = "SELECT d FROM Discount d WHERE d.maxNum = :maxNum"),
@NamedQuery(name = "Discount.findByPerUser", query = "SELECT d FROM Discount d WHERE d.perUser = :perUser") })
public class Discount implements ModelInterface {
private static final long serialVersionUID = 1L;
@Id
......@@ -84,153 +84,153 @@ public class Discount implements ModelInterface {
}
public Discount(Integer discountsId) {
this.id = discountsId;
this.id = discountsId;
}
@Override
public Integer getId() {
return id;
return id;
}
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
public Discount(Integer discountsId, int percentage, int amountMin,
int amountMax, boolean active, int maxNum, int perUser) {
this.id = discountsId;
this.setPercentage(percentage);
this.amountMin = amountMin;
this.amountMax = amountMax;
this.active = active;
this.maxNum = maxNum;
this.perUser = perUser;
int amountMax, boolean active, int maxNum, int perUser) {
this.id = discountsId;
this.setPercentage(percentage);
this.amountMin = amountMin;
this.amountMax = amountMax;
this.active = active;
this.maxNum = maxNum;
this.perUser = perUser;
}
public String getCode() {
return code;
return code;
}
public void setCode(String code) {
this.code = code;
this.code = code;
}
public String getDetails() {
return details;
return details;
}
public void setDetails(String details) {
this.details = details;
this.details = details;
}
public int getAmountMin() {
return amountMin;
return amountMin;
}
public void setAmountMin(int amountMin) {
this.amountMin = amountMin;
this.amountMin = amountMin;
}
public int getAmountMax() {
return amountMax;
return amountMax;
}
public void setAmountMax(int amountMax) {
this.amountMax = amountMax;
this.amountMax = amountMax;
}
public boolean getActive() {
return active;
return active;
}
public void setActive(boolean active) {
this.active = active;
this.active = active;
}
public int getMaxNum() {
return maxNum;
return maxNum;
}
public void setMaxNum(int maxNum) {
this.maxNum = maxNum;
this.maxNum = maxNum;
}
public int getPerUser() {
return perUser;
return perUser;
}
public void setPerUser(int perUser) {
this.perUser = perUser;
this.perUser = perUser;
}
public List<DiscountInstance> getDiscountInstances() {
return discountInstances;
return discountInstances;
}
public void setDiscountInstances(List<DiscountInstance> discountInstanceList) {
this.discountInstances = discountInstanceList;
this.discountInstances = discountInstanceList;
}
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Discount)) {
return false;
}
Discount other = (Discount) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Discount)) {
return false;
}
Discount other = (Discount) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.Discount[id=" + id + "]";
return "fi.insomnia.bortal.model.Discount[id=" + id + "]";
}
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
public void setPercentage(int percentage) {
this.percentage = percentage;
this.percentage = percentage;
}
public int getPercentage() {
return percentage;
return percentage;
}
public void setRole(Role role) {
this.role = role;
this.role = role;
}
public Role getRole() {
return role;
return role;
}
public void setProduct(Product product) {
this.product = product;
this.product = product;
}
public Product getProduct() {
return product;
return product;
}
}
......@@ -23,9 +23,7 @@ import javax.persistence.Version;
*/
@Entity
@Table(name = "discount_instances")
@NamedQueries( {
@NamedQuery(name = "DiscountInstance.findAll", query = "SELECT d FROM DiscountInstance d"),
@NamedQuery(name = "DiscountInstance.findById", query = "SELECT d FROM DiscountInstance d WHERE d.id = :id") })
@NamedQueries( { @NamedQuery(name = "DiscountInstance.findAll", query = "SELECT d FROM DiscountInstance d"), })
public class DiscountInstance implements ModelInterface {
private static final long serialVersionUID = 1L;
......
......@@ -28,12 +28,12 @@ import javax.persistence.Version;
@Entity
@Table(name = "events")
@NamedQueries( {
@NamedQuery(name = "Event.findAll", query = "SELECT e FROM Event e"),
@NamedQuery(name = "Event.findById", query = "SELECT e FROM Event e WHERE e.id = :id"),
@NamedQuery(name = "Event.findByStartTime", query = "SELECT e FROM Event e WHERE e.startTime = :startTime"),
@NamedQuery(name = "Event.findByEndTime", query = "SELECT e FROM Event e WHERE e.endTime = :endTime"),
@NamedQuery(name = "Event.findByName", query = "SELECT e FROM Event e WHERE e.name = :name"),
@NamedQuery(name = "Event.findByReferer", query = "SELECT e FROM Event e WHERE e.referer = :referer") })
@NamedQuery(name = "Event.findAll", query = "SELECT e FROM Event e"),
@NamedQuery(name = "Event.findByStartTime", query = "SELECT e FROM Event e WHERE e.startTime = :startTime"),
@NamedQuery(name = "Event.findByEndTime", query = "SELECT e FROM Event e WHERE e.endTime = :endTime"),
@NamedQuery(name = "Event.findByName", query = "SELECT e FROM Event e WHERE e.name = :name"),
@NamedQuery(name = "Event.findByReferer", query = "SELECT e FROM Event e WHERE e.referer = :referer") })
public class Event implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -87,127 +87,127 @@ public class Event implements ModelInterface {
}
public Event(Integer eventsId) {
this.id = eventsId;
this.id = eventsId;
}
public Event(Integer eventsId, String name) {
this.id = eventsId;
this.name = name;
this.id = eventsId;
this.name = name;
}
public Date getStartTime() {
return startTime;
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
this.endTime = endTime;
}
public String getName() {
return name;
return name;
}
public void setName(String name) {
this.name = name;
this.name = name;
}
public String getReferer() {
return referer;
return referer;
}
public void setReferer(String referer) {
this.referer = referer;
this.referer = referer;
}
public EventSettings getSettings() {
return settings;
return settings;
}
public void setSettings(EventSettings eventSettingsId) {
this.settings = eventSettingsId;
this.settings = eventSettingsId;
}
public EventStatus getStatus() {
return status;
return status;
}
public void setStatus(EventStatus eventStatusId) {
this.status = eventStatusId;
this.status = eventStatusId;
}
public Role getDefaultRole() {
return defaultRole;
return defaultRole;
}
public void setDefaultRole(Role defaultRole) {
this.defaultRole = defaultRole;
this.defaultRole = defaultRole;
}
public List<Compo> getCompos() {
return compos;
return compos;
}
public void setCompos(List<Compo> compoList) {
this.compos = compoList;
this.compos = compoList;
}
public List<CardTemplate> getCardTemplates() {
return cardTemplates;
return cardTemplates;
}
public void setCardTemplates(List<CardTemplate> cardTemplateList) {
this.cardTemplates = cardTemplateList;
this.cardTemplates = cardTemplateList;
}
public List<EventMap> getEventMaps() {
return eventMaps;
return eventMaps;
}
public void setEventMaps(List<EventMap> eventMapList) {
this.eventMaps = eventMapList;
this.eventMaps = eventMapList;
}
public List<Role> getRoles() {
return roles;
return roles;
}
public void setRoles(List<Role> roleList) {
this.roles = roleList;
this.roles = roleList;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Event)) {
return false;
}
Event other = (Event) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Event)) {
return false;
}
Event other = (Event) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.Event[eventsId=" + getId() + "]";
return "fi.insomnia.bortal.model.Event[eventsId=" + getId() + "]";
}
/**
......@@ -215,7 +215,7 @@ public class Event implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -224,7 +224,7 @@ public class Event implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -232,7 +232,7 @@ public class Event implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -241,6 +241,6 @@ public class Event implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -25,9 +25,9 @@ import javax.persistence.Version;
@Entity
@Table(name = "maps")
@NamedQueries( {
@NamedQuery(name = "EventMap.findAll", query = "SELECT e FROM EventMap e"),
@NamedQuery(name = "EventMap.findById", query = "SELECT e FROM EventMap e WHERE id = :id"),
@NamedQuery(name = "EventMap.findByName", query = "SELECT e FROM EventMap e WHERE e.name = :name") })
@NamedQuery(name = "EventMap.findAll", query = "SELECT e FROM EventMap e"),
@NamedQuery(name = "EventMap.findByName", query = "SELECT e FROM EventMap e WHERE e.name = :name") })
public class EventMap implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -57,66 +57,66 @@ public class EventMap implements ModelInterface {
}
public EventMap(Integer mapsId) {
this.id = mapsId;
this.id = mapsId;
}
public byte[] getMapData() {
return mapData;
return mapData;
}
public void setMapData(byte[] mapData) {
this.mapData = mapData;
this.mapData = mapData;
}
public String getName() {
return name;
return name;
}
public void setName(String mapName) {
this.name = mapName;
this.name = mapName;
}
public List<Place> getPlaces() {
return places;
return places;
}
public void setPlaces(List<Place> placeList) {
this.places = placeList;
this.places = placeList;
}
public Event getEvent() {
return event;
return event;
}
public void setEvent(Event eventsId) {
this.event = eventsId;
this.event = eventsId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof EventMap)) {
return false;
}
EventMap other = (EventMap) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof EventMap)) {
return false;
}
EventMap other = (EventMap) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.EventMap[id=" + getId() + "]";
return "fi.insomnia.bortal.model.EventMap[id=" + getId() + "]";
}
/**
......@@ -124,7 +124,7 @@ public class EventMap implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -133,7 +133,7 @@ public class EventMap implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -141,7 +141,7 @@ public class EventMap implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -150,6 +150,6 @@ public class EventMap implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -22,10 +22,10 @@ import javax.persistence.Version;
@Entity
@Table(name = "event_settings")
@NamedQueries( {
@NamedQuery(name = "EventSettings.findAll", query = "SELECT e FROM EventSettings e"),
@NamedQuery(name = "EventSettings.findById", query = "SELECT e FROM EventSettings e WHERE e.id = :id"),
@NamedQuery(name = "EventSettings.findByBaseName", query = "SELECT e FROM EventSettings e WHERE e.baseName = :baseName"),
@NamedQuery(name = "EventSettings.findByStyleSheet", query = "SELECT e FROM EventSettings e WHERE e.styleSheet = :styleSheet") })
@NamedQuery(name = "EventSettings.findAll", query = "SELECT e FROM EventSettings e"),
@NamedQuery(name = "EventSettings.findByBaseName", query = "SELECT e FROM EventSettings e WHERE e.baseName = :baseName"),
@NamedQuery(name = "EventSettings.findByStyleSheet", query = "SELECT e FROM EventSettings e WHERE e.styleSheet = :styleSheet") })
public class EventSettings implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -50,58 +50,58 @@ public class EventSettings implements ModelInterface {
}
public EventSettings(Integer eventSettingsId) {
this.id = eventSettingsId;
this.id = eventSettingsId;
}
public String getBaseName() {
return baseName;
return baseName;
}
public void setBaseName(String resourceBundle) {
this.baseName = resourceBundle;
this.baseName = resourceBundle;
}
public String getStyleSheet() {
return styleSheet;
return styleSheet;
}
public void setStyleSheet(String styleSheet) {
this.styleSheet = styleSheet;
this.styleSheet = styleSheet;
}
public List<Event> getEvents() {
return events;
return events;
}
public void setEvents(List<Event> eventList) {
this.events = eventList;
this.events = eventList;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof EventSettings)) {
return false;
}
EventSettings other = (EventSettings) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof EventSettings)) {
return false;
}
EventSettings other = (EventSettings) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.EventSettings[id=" + getId() + "]";
return "fi.insomnia.bortal.model.EventSettings[id=" + getId() + "]";
}
/**
......@@ -109,7 +109,7 @@ public class EventSettings implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -118,7 +118,7 @@ public class EventSettings implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -126,7 +126,7 @@ public class EventSettings implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -135,6 +135,6 @@ public class EventSettings implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -23,9 +23,9 @@ import javax.persistence.Version;
@Entity
@Table(name = "event_status", uniqueConstraints = { @UniqueConstraint(columnNames = { "status_name" }) })
@NamedQueries( {
@NamedQuery(name = "EventStatus.findAll", query = "SELECT e FROM EventStatus e"),
@NamedQuery(name = "EventStatus.findById", query = "SELECT e FROM EventStatus e WHERE e.id = :id"),
@NamedQuery(name = "EventStatus.findByStatusName", query = "SELECT e FROM EventStatus e WHERE e.statusName = :statusName") })
@NamedQuery(name = "EventStatus.findAll", query = "SELECT e FROM EventStatus e"),
@NamedQuery(name = "EventStatus.findByStatusName", query = "SELECT e FROM EventStatus e WHERE e.statusName = :statusName") })
public class EventStatus implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -48,55 +48,55 @@ public class EventStatus implements ModelInterface {
}
public EventStatus(Integer eventStatusId) {
this.id = eventStatusId;
this.id = eventStatusId;
}
public EventStatus(Integer eventStatusId, String statusName) {
this.id = eventStatusId;
this.statusName = statusName;
this.id = eventStatusId;
this.statusName = statusName;
}
public String getStatusName() {
return statusName;
return statusName;
}
public void setStatusName(String statusName) {
this.statusName = statusName;
this.statusName = statusName;
}
public List<Event> getEvents() {
return events;
return events;
}
public void setEvents(List<Event> eventList) {
this.events = eventList;
this.events = eventList;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof EventStatus)) {
return false;
}
EventStatus other = (EventStatus) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof EventStatus)) {
return false;
}
EventStatus other = (EventStatus) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.EventStatus[id=" + getId() + "]";
return "fi.insomnia.bortal.model.EventStatus[id=" + getId() + "]";
}
/**
......@@ -104,7 +104,7 @@ public class EventStatus implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -113,7 +113,7 @@ public class EventStatus implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -121,7 +121,7 @@ public class EventStatus implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -130,6 +130,6 @@ public class EventStatus implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -24,12 +24,12 @@ import javax.persistence.Version;
@Entity
@Table(name = "food_waves")
@NamedQueries( {
@NamedQuery(name = "FoodWave.findAll", query = "SELECT f FROM FoodWave f"),
@NamedQuery(name = "FoodWave.findById", query = "SELECT f FROM FoodWave f WHERE f.id = :id"),
@NamedQuery(name = "FoodWave.findByName", query = "SELECT f FROM FoodWave f WHERE f.name = :name"),
@NamedQuery(name = "FoodWave.findByDescription", query = "SELECT f FROM FoodWave f WHERE f.description = :description"),
@NamedQuery(name = "FoodWave.findByTime", query = "SELECT f FROM FoodWave f WHERE f.time = :time"),
@NamedQuery(name = "FoodWave.findByClosed", query = "SELECT f FROM FoodWave f WHERE f.closed = :closed") })
@NamedQuery(name = "FoodWave.findAll", query = "SELECT f FROM FoodWave f"),
@NamedQuery(name = "FoodWave.findByName", query = "SELECT f FROM FoodWave f WHERE f.name = :name"),
@NamedQuery(name = "FoodWave.findByDescription", query = "SELECT f FROM FoodWave f WHERE f.description = :description"),
@NamedQuery(name = "FoodWave.findByTime", query = "SELECT f FROM FoodWave f WHERE f.time = :time"),
@NamedQuery(name = "FoodWave.findByClosed", query = "SELECT f FROM FoodWave f WHERE f.closed = :closed") })
public class FoodWave implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -61,81 +61,81 @@ public class FoodWave implements ModelInterface {
}
public FoodWave(Integer foodWavesId) {
this.id = foodWavesId;
this.id = foodWavesId;
}
public FoodWave(Integer foodWavesId, String waveName, boolean waveClosed) {
this.id = foodWavesId;
this.name = waveName;
this.closed = waveClosed;
this.id = foodWavesId;
this.name = waveName;
this.closed = waveClosed;
}
public String getName() {
return name;
return name;
}
public void setName(String waveName) {
this.name = waveName;
this.name = waveName;
}
public String getDescription() {
return description;
return description;
}
public void setDescription(String waveDescription) {
this.description = waveDescription;
this.description = waveDescription;
}
public Date getTime() {
return time;
return time;
}
public void setTime(Date waveTime) {
this.time = waveTime;
this.time = waveTime;
}
public boolean getClosed() {
return closed;
return closed;
}
public void setClosed(boolean waveClosed) {
this.closed = waveClosed;
this.closed = waveClosed;
}
public List<AccountEvent> getAccountEvents() {
return accountEvents;
return accountEvents;
}
public void setAccountEvents(List<AccountEvent> accountEventList) {
this.accountEvents = accountEventList;
this.accountEvents = accountEventList;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id
// fields are
// not set
if (!(object instanceof FoodWave)) {
return false;
}
FoodWave other = (FoodWave) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id
// fields are
// not set
if (!(object instanceof FoodWave)) {
return false;
}
FoodWave other = (FoodWave) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.FoodWave[id=" + getId() + "]";
return "fi.insomnia.bortal.model.FoodWave[id=" + getId() + "]";
}
/**
......@@ -143,7 +143,7 @@ public class FoodWave implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -152,7 +152,7 @@ public class FoodWave implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -160,7 +160,7 @@ public class FoodWave implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -169,6 +169,6 @@ public class FoodWave implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -21,10 +21,10 @@ import javax.persistence.Version;
@Entity
@Table(name = "food_wave_templates")
@NamedQueries( {
@NamedQuery(name = "FoodWaveTemplate.findAll", query = "SELECT f FROM FoodWaveTemplate f"),
@NamedQuery(name = "FoodWaveTemplate.findById", query = "SELECT f FROM FoodWaveTemplate f WHERE f.id = :id"),
@NamedQuery(name = "FoodWaveTemplate.findByName", query = "SELECT f FROM FoodWaveTemplate f WHERE f.name = :name"),
@NamedQuery(name = "FoodWaveTemplate.findByDescription", query = "SELECT f FROM FoodWaveTemplate f WHERE f.description = :description") })
@NamedQuery(name = "FoodWaveTemplate.findAll", query = "SELECT f FROM FoodWaveTemplate f"),
@NamedQuery(name = "FoodWaveTemplate.findByName", query = "SELECT f FROM FoodWaveTemplate f WHERE f.name = :name"),
@NamedQuery(name = "FoodWaveTemplate.findByDescription", query = "SELECT f FROM FoodWaveTemplate f WHERE f.description = :description") })
public class FoodWaveTemplate implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -49,62 +49,62 @@ public class FoodWaveTemplate implements ModelInterface {
}
public FoodWaveTemplate(Integer foodWaveTemplatesId) {
this.id = foodWaveTemplatesId;
this.id = foodWaveTemplatesId;
}
public FoodWaveTemplate(Integer foodWaveTemplatesId, String templateName) {
this.id = foodWaveTemplatesId;
this.name = templateName;
this.id = foodWaveTemplatesId;
this.name = templateName;
}
public String getName() {
return name;
return name;
}
public void setName(String templateName) {
this.name = templateName;
this.name = templateName;
}
public String getDescription() {
return description;
return description;
}
public void setDescription(String templateDescription) {
this.description = templateDescription;
this.description = templateDescription;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof FoodWaveTemplate)) {
return false;
}
FoodWaveTemplate other = (FoodWaveTemplate) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof FoodWaveTemplate)) {
return false;
}
FoodWaveTemplate other = (FoodWaveTemplate) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.FoodWaveTemplate[id=" + getId() + "]";
return "fi.insomnia.bortal.model.FoodWaveTemplate[id=" + getId() + "]";
}
/**
* @return the products
*/
public List<Product> getProducts() {
return products;
return products;
}
/**
......@@ -112,7 +112,7 @@ public class FoodWaveTemplate implements ModelInterface {
* the products to set
*/
public void setProducts(List<Product> products) {
this.products = products;
this.products = products;
}
/**
......@@ -120,7 +120,7 @@ public class FoodWaveTemplate implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -129,7 +129,7 @@ public class FoodWaveTemplate implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -137,7 +137,7 @@ public class FoodWaveTemplate implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -146,6 +146,6 @@ public class FoodWaveTemplate implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -25,13 +25,13 @@ import javax.persistence.Version;
*/
@Entity
@Table(name = "group_memberships", uniqueConstraints = { @UniqueConstraint(columnNames = {
"users_id", "groups_id" }) })
"users_id", "groups_id" }) })
@NamedQueries( {
@NamedQuery(name = "GroupMembership.findAll", query = "SELECT g FROM GroupMembership g"),
@NamedQuery(name = "GroupMembership.findById", query = "SELECT g FROM GroupMembership g WHERE g.id = :id"),
@NamedQuery(name = "GroupMembership.findByInviteAccepted", query = "SELECT g FROM GroupMembership g WHERE g.inviteAccepted = :inviteAccepted"),
@NamedQuery(name = "GroupMembership.findByInviteEmail", query = "SELECT g FROM GroupMembership g WHERE g.inviteEmail = :inviteEmail"),
@NamedQuery(name = "GroupMembership.findByInviteName", query = "SELECT g FROM GroupMembership g WHERE g.inviteName = :inviteName") })
@NamedQuery(name = "GroupMembership.findAll", query = "SELECT g FROM GroupMembership g"),
@NamedQuery(name = "GroupMembership.findByInviteAccepted", query = "SELECT g FROM GroupMembership g WHERE g.inviteAccepted = :inviteAccepted"),
@NamedQuery(name = "GroupMembership.findByInviteEmail", query = "SELECT g FROM GroupMembership g WHERE g.inviteEmail = :inviteEmail"),
@NamedQuery(name = "GroupMembership.findByInviteName", query = "SELECT g FROM GroupMembership g WHERE g.inviteName = :inviteName") })
public class GroupMembership implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -69,82 +69,82 @@ public class GroupMembership implements ModelInterface {
}
public GroupMembership(Integer groupMembershipsId) {
this.id = groupMembershipsId;
this.id = groupMembershipsId;
}
public Date getInviteAccepted() {
return inviteAccepted;
return inviteAccepted;
}
public void setInviteAccepted(Date inviteAccepted) {
this.inviteAccepted = inviteAccepted;
this.inviteAccepted = inviteAccepted;
}
public String getInviteEmail() {
return inviteEmail;
return inviteEmail;
}
public void setInviteEmail(String inviteEmail) {
this.inviteEmail = inviteEmail;
this.inviteEmail = inviteEmail;
}
public String getInviteName() {
return inviteName;
return inviteName;
}
public void setInviteName(String inviteName) {
this.inviteName = inviteName;
this.inviteName = inviteName;
}
public PlaceGroup getPlaceGroup() {
return placeGroup;
return placeGroup;
}
public void setPlaceGroup(PlaceGroup groupsId) {
this.placeGroup = groupsId;
this.placeGroup = groupsId;
}
public Place getPlaceReservation() {
return placeReservation;
return placeReservation;
}
public void setPlaceReservation(Place placeReservation) {
this.placeReservation = placeReservation;
this.placeReservation = placeReservation;
}
public User getUser() {
return user;
return user;
}
public void setUser(User usersId) {
this.user = usersId;
this.user = usersId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof GroupMembership)) {
return false;
}
GroupMembership other = (GroupMembership) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof GroupMembership)) {
return false;
}
GroupMembership other = (GroupMembership) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.GroupMembership[id=" + getId() + "]";
return "fi.insomnia.bortal.model.GroupMembership[id=" + getId() + "]";
}
/**
......@@ -152,7 +152,7 @@ public class GroupMembership implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -161,7 +161,7 @@ public class GroupMembership implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -169,7 +169,7 @@ public class GroupMembership implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -178,6 +178,6 @@ public class GroupMembership implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -22,7 +22,7 @@ import javax.persistence.Version;
@Table(name = "locations")
@NamedQueries( {
@NamedQuery(name = "Location.findAll", query = "SELECT l FROM Location l"),
@NamedQuery(name = "Location.findById", query = "SELECT l FROM Location l WHERE l.id = :id"),
@NamedQuery(name = "Location.findByLocationName", query = "SELECT l FROM Location l WHERE l.locationName = :name") })
public class Location implements ModelInterface {
......
......@@ -24,10 +24,10 @@ import javax.persistence.Version;
@Entity
@Table(name = "event_log")
@NamedQueries( {
@NamedQuery(name = "LogEntry.findAll", query = "SELECT l FROM LogEntry l"),
@NamedQuery(name = "LogEntry.findById", query = "SELECT l FROM LogEntry l WHERE l.id = :id"),
@NamedQuery(name = "LogEntry.findByTime", query = "SELECT l FROM LogEntry l WHERE l.time = :time"),
@NamedQuery(name = "LogEntry.findByDescription", query = "SELECT l FROM LogEntry l WHERE l.description = :description") })
@NamedQuery(name = "LogEntry.findAll", query = "SELECT l FROM LogEntry l"),
@NamedQuery(name = "LogEntry.findByTime", query = "SELECT l FROM LogEntry l WHERE l.time = :time"),
@NamedQuery(name = "LogEntry.findByDescription", query = "SELECT l FROM LogEntry l WHERE l.description = :description") })
public class LogEntry implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -59,71 +59,71 @@ public class LogEntry implements ModelInterface {
}
public LogEntry(Integer eventLogId) {
this.id = eventLogId;
this.id = eventLogId;
}
public LogEntry(Integer eventLogId, Date eventTime) {
this.id = eventLogId;
this.time = eventTime;
this.id = eventLogId;
this.time = eventTime;
}
public Date getTime() {
return time;
return time;
}
public void setTime(Date eventTime) {
this.time = eventTime;
this.time = eventTime;
}
public String getDescription() {
return description;
return description;
}
public void setDescription(String eventDescription) {
this.description = eventDescription;
this.description = eventDescription;
}
public LogEntryType getType() {
return type;
return type;
}
public void setType(LogEntryType eventLogTypesId) {
this.type = eventLogTypesId;
this.type = eventLogTypesId;
}
public User getUser() {
return user;
return user;
}
public void setUser(User usersId) {
this.user = usersId;
this.user = usersId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof LogEntry)) {
return false;
}
LogEntry other = (LogEntry) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof LogEntry)) {
return false;
}
LogEntry other = (LogEntry) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.LogEntry[eventLogId=" + getId() + "]";
return "fi.insomnia.bortal.model.LogEntry[eventLogId=" + getId() + "]";
}
/**
......@@ -131,7 +131,7 @@ public class LogEntry implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -140,7 +140,7 @@ public class LogEntry implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -148,7 +148,7 @@ public class LogEntry implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -157,6 +157,6 @@ public class LogEntry implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -22,9 +22,9 @@ import javax.persistence.Version;
@Entity
@Table(name = "event_log_types")
@NamedQueries( {
@NamedQuery(name = "LogEntryType.findAll", query = "SELECT l FROM LogEntryType l"),
@NamedQuery(name = "LogEntryType.findById", query = "SELECT l FROM LogEntryType l WHERE l.id = :id"),
@NamedQuery(name = "LogEntryType.findByDescription", query = "SELECT l FROM LogEntryType l WHERE l.description = :description") })
@NamedQuery(name = "LogEntryType.findAll", query = "SELECT l FROM LogEntryType l"),
@NamedQuery(name = "LogEntryType.findByDescription", query = "SELECT l FROM LogEntryType l WHERE l.description = :description") })
public class LogEntryType implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -47,55 +47,55 @@ public class LogEntryType implements ModelInterface {
}
public LogEntryType(Integer eventLogTypesId) {
this.id = eventLogTypesId;
this.id = eventLogTypesId;
}
public LogEntryType(Integer eventLogTypesId, String eventTypeDescription) {
this.id = eventLogTypesId;
this.description = eventTypeDescription;
this.id = eventLogTypesId;
this.description = eventTypeDescription;
}
public String getDescription() {
return description;
return description;
}
public void setDescription(String eventTypeDescription) {
this.description = eventTypeDescription;
this.description = eventTypeDescription;
}
public List<LogEntry> getLogEntries() {
return logEntries;
return logEntries;
}
public void setLogEntries(List<LogEntry> logEntryList) {
this.logEntries = logEntryList;
this.logEntries = logEntryList;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof LogEntryType)) {
return false;
}
LogEntryType other = (LogEntryType) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof LogEntryType)) {
return false;
}
LogEntryType other = (LogEntryType) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.LogEntryType[id=" + getId() + "]";
return "fi.insomnia.bortal.model.LogEntryType[id=" + getId() + "]";
}
/**
......@@ -103,7 +103,7 @@ public class LogEntryType implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -112,7 +112,7 @@ public class LogEntryType implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -120,7 +120,7 @@ public class LogEntryType implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -129,6 +129,6 @@ public class LogEntryType implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -25,14 +25,14 @@ import javax.persistence.Version;
@Entity
@Table(name = "news")
@NamedQueries( {
@NamedQuery(name = "News.findAll", query = "SELECT n FROM News n"),
@NamedQuery(name = "News.findById", query = "SELECT n FROM News n WHERE n.id = :id"),
@NamedQuery(name = "News.findByTitle", query = "SELECT n FROM News n WHERE n.title = :title"),
@NamedQuery(name = "News.findByBody", query = "SELECT n FROM News n WHERE n.body = :body"),
@NamedQuery(name = "News.findByAbstract", query = "SELECT n FROM News n WHERE n.bodyAbstract = :bodyAbstract"),
@NamedQuery(name = "News.findByPublish", query = "SELECT n FROM News n WHERE n.publish = :publish"),
@NamedQuery(name = "News.findByExpire", query = "SELECT n FROM News n WHERE n.expire = :expire"),
@NamedQuery(name = "News.findByPriority", query = "SELECT n FROM News n WHERE n.priority = :priority") })
@NamedQuery(name = "News.findAll", query = "SELECT n FROM News n"),
@NamedQuery(name = "News.findByTitle", query = "SELECT n FROM News n WHERE n.title = :title"),
@NamedQuery(name = "News.findByBody", query = "SELECT n FROM News n WHERE n.body = :body"),
@NamedQuery(name = "News.findByAbstract", query = "SELECT n FROM News n WHERE n.bodyAbstract = :bodyAbstract"),
@NamedQuery(name = "News.findByPublish", query = "SELECT n FROM News n WHERE n.publish = :publish"),
@NamedQuery(name = "News.findByExpire", query = "SELECT n FROM News n WHERE n.expire = :expire"),
@NamedQuery(name = "News.findByPriority", query = "SELECT n FROM News n WHERE n.priority = :priority") })
public class News implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -72,96 +72,96 @@ public class News implements ModelInterface {
}
public News(Integer newsId) {
this.id = newsId;
this.id = newsId;
}
public News(Integer newsId, String title, int priority) {
this.id = newsId;
this.title = title;
this.priority = priority;
this.id = newsId;
this.title = title;
this.priority = priority;
}
public String getTitle() {
return title;
return title;
}
public void setTitle(String title) {
this.title = title;
this.title = title;
}
public String getBody() {
return body;
return body;
}
public void setBody(String body) {
this.body = body;
this.body = body;
}
public String getBodyAbstract() {
return bodyAbstract;
return bodyAbstract;
}
public void setBodyAbstract(String abstract1) {
this.bodyAbstract = abstract1;
this.bodyAbstract = abstract1;
}
public Date getPublish() {
return publish;
return publish;
}
public void setPublish(Date publish) {
this.publish = publish;
this.publish = publish;
}
public Date getExpire() {
return expire;
return expire;
}
public void setExpire(Date expire) {
this.expire = expire;
this.expire = expire;
}
public int getPriority() {
return priority;
return priority;
}
public void setPriority(int priority) {
this.priority = priority;
this.priority = priority;
}
public NewsGroup getGroup() {
return group;
return group;
}
public void setGroup(NewsGroup newsGroupsId) {
this.group = newsGroupsId;
this.group = newsGroupsId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof News)) {
return false;
}
News other = (News) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof News)) {
return false;
}
News other = (News) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.News[id=" + getId() + "]";
return "fi.insomnia.bortal.model.News[id=" + getId() + "]";
}
/**
......@@ -169,7 +169,7 @@ public class News implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -178,7 +178,7 @@ public class News implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -186,7 +186,7 @@ public class News implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -195,6 +195,6 @@ public class News implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -25,11 +25,11 @@ import javax.persistence.Version;
@Entity
@Table(name = "news_groups")
@NamedQueries( {
@NamedQuery(name = "NewsGroup.findAll", query = "SELECT n FROM NewsGroup n"),
@NamedQuery(name = "NewsGroup.findById", query = "SELECT n FROM NewsGroup n WHERE n.id = :id"),
@NamedQuery(name = "NewsGroup.findByName", query = "SELECT n FROM NewsGroup n WHERE n.name = :name"),
@NamedQuery(name = "NewsGroup.findByDescription", query = "SELECT n FROM NewsGroup n WHERE n.description = :description"),
@NamedQuery(name = "NewsGroup.findByPriority", query = "SELECT n FROM NewsGroup n WHERE n.priority = :priority") })
@NamedQuery(name = "NewsGroup.findAll", query = "SELECT n FROM NewsGroup n"),
@NamedQuery(name = "NewsGroup.findByName", query = "SELECT n FROM NewsGroup n WHERE n.name = :name"),
@NamedQuery(name = "NewsGroup.findByDescription", query = "SELECT n FROM NewsGroup n WHERE n.description = :description"),
@NamedQuery(name = "NewsGroup.findByPriority", query = "SELECT n FROM NewsGroup n WHERE n.priority = :priority") })
public class NewsGroup implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -62,81 +62,81 @@ public class NewsGroup implements ModelInterface {
}
public NewsGroup(Integer newsGroupsId) {
this.id = newsGroupsId;
this.id = newsGroupsId;
}
public NewsGroup(Integer newsGroupsId, String groupName, int priority) {
this.id = newsGroupsId;
this.name = groupName;
this.priority = priority;
this.id = newsGroupsId;
this.name = groupName;
this.priority = priority;
}
public String getName() {
return name;
return name;
}
public void setName(String groupName) {
this.name = groupName;
this.name = groupName;
}
public String getDescription() {
return description;
return description;
}
public void setDescription(String groupDescription) {
this.description = groupDescription;
this.description = groupDescription;
}
public int getPriority() {
return priority;
return priority;
}
public void setPriority(int priority) {
this.priority = priority;
this.priority = priority;
}
public AccessRight getAccessRight() {
return accessRight;
return accessRight;
}
public void setAccessRight(AccessRight accessRightsId) {
this.accessRight = accessRightsId;
this.accessRight = accessRightsId;
}
public List<News> getNews() {
return news;
return news;
}
public void setNews(List<News> newsList) {
this.news = newsList;
this.news = newsList;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof NewsGroup)) {
return false;
}
NewsGroup other = (NewsGroup) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof NewsGroup)) {
return false;
}
NewsGroup other = (NewsGroup) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.NewsGroup[newsGroupsId=" + getId()
+ "]";
return "fi.insomnia.bortal.model.NewsGroup[newsGroupsId=" + getId()
+ "]";
}
/**
......@@ -144,7 +144,7 @@ public class NewsGroup implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -153,7 +153,7 @@ public class NewsGroup implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -161,7 +161,7 @@ public class NewsGroup implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -170,6 +170,6 @@ public class NewsGroup implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -21,14 +21,14 @@ import javax.persistence.Version;
@Entity
@Table(name = "places")
@NamedQueries( {
@NamedQuery(name = "Place.findAll", query = "SELECT p FROM Place p"),
@NamedQuery(name = "Place.findByDescription", query = "SELECT p FROM Place p WHERE p.description = :description"),
@NamedQuery(name = "Place.findById", query = "SELECT p FROM Place p WHERE p.id = :id"),
@NamedQuery(name = "Place.findByName", query = "SELECT p FROM Place p WHERE p.name = :name"),
@NamedQuery(name = "Place.findByMapX", query = "SELECT p FROM Place p WHERE p.mapX = :mapX"),
@NamedQuery(name = "Place.findByMapY", query = "SELECT p FROM Place p WHERE p.mapY = :mapY"),
@NamedQuery(name = "Place.findByDetails", query = "SELECT p FROM Place p WHERE p.details = :details"),
@NamedQuery(name = "Place.findByCode", query = "SELECT p FROM Place p WHERE p.code = :code") })
@NamedQuery(name = "Place.findAll", query = "SELECT p FROM Place p"),
@NamedQuery(name = "Place.findByDescription", query = "SELECT p FROM Place p WHERE p.description = :description"),
@NamedQuery(name = "Place.findByName", query = "SELECT p FROM Place p WHERE p.name = :name"),
@NamedQuery(name = "Place.findByMapX", query = "SELECT p FROM Place p WHERE p.mapX = :mapX"),
@NamedQuery(name = "Place.findByMapY", query = "SELECT p FROM Place p WHERE p.mapY = :mapY"),
@NamedQuery(name = "Place.findByDetails", query = "SELECT p FROM Place p WHERE p.details = :details"),
@NamedQuery(name = "Place.findByCode", query = "SELECT p FROM Place p WHERE p.code = :code") })
public class Place implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -85,114 +85,114 @@ public class Place implements ModelInterface {
}
public Place(Integer placesId) {
this.id = placesId;
this.id = placesId;
}
public String getDescription() {
return description;
return description;
}
public void setDescription(String placeDescription) {
this.description = placeDescription;
this.description = placeDescription;
}
public String getName() {
return name;
return name;
}
public void setName(String placeName) {
this.name = placeName;
this.name = placeName;
}
public Integer getMapX() {
return mapX;
return mapX;
}
public void setMapX(Integer mapX) {
this.mapX = mapX;
this.mapX = mapX;
}
public Integer getMapY() {
return mapY;
return mapY;
}
public void setMapY(Integer mapY) {
this.mapY = mapY;
this.mapY = mapY;
}
public String getDetails() {
return details;
return details;
}
public void setDetails(String placeDetails) {
this.details = placeDetails;
this.details = placeDetails;
}
public String getCode() {
return code;
return code;
}
public void setCode(String placeCode) {
this.code = placeCode;
this.code = placeCode;
}
public PlaceGroup getPlaceGroup() {
return placeGroup;
return placeGroup;
}
public void setPlaceGroup(PlaceGroup groupsId) {
this.placeGroup = groupsId;
this.placeGroup = groupsId;
}
public EventMap getMap() {
return map;
return map;
}
public void setMap(EventMap mapsId) {
this.map = mapsId;
this.map = mapsId;
}
public Product getProduct() {
return product;
return product;
}
public void setProduct(Product productsId) {
this.product = productsId;
this.product = productsId;
}
public User getCurrentUser() {
return currentUser;
return currentUser;
}
public void setCurrentUser(User usersId) {
this.currentUser = usersId;
this.currentUser = usersId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Place)) {
return false;
}
Place other = (Place) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Place)) {
return false;
}
Place other = (Place) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.Place[id=" + getId() + "]";
return "fi.insomnia.bortal.model.Place[id=" + getId() + "]";
}
/**
......@@ -200,7 +200,7 @@ public class Place implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -209,7 +209,7 @@ public class Place implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -217,7 +217,7 @@ public class Place implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -226,14 +226,14 @@ public class Place implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
public void setPlaceReserver(GroupMembership placeReserver) {
this.placeReserver = placeReserver;
this.placeReserver = placeReserver;
}
public GroupMembership getPlaceReserver() {
return placeReserver;
return placeReserver;
}
}
......@@ -28,7 +28,7 @@ import javax.persistence.Version;
@Table(name = "groups")
@NamedQueries( {
@NamedQuery(name = "PlaceGroup.findAll", query = "SELECT p FROM PlaceGroup p"),
@NamedQuery(name = "PlaceGroup.findById", query = "SELECT p FROM PlaceGroup p WHERE p.id = :id"),
@NamedQuery(name = "PlaceGroup.findByCreated", query = "SELECT p FROM PlaceGroup p WHERE p.created = :created"),
@NamedQuery(name = "PlaceGroup.findByEdited", query = "SELECT p FROM PlaceGroup p WHERE p.edited = :edited"),
@NamedQuery(name = "PlaceGroup.findByCode", query = "SELECT p FROM PlaceGroup p WHERE p.code = :code"),
......
......@@ -28,12 +28,12 @@ import javax.persistence.Version;
@Entity
@Table(name = "printed_cards")
@NamedQueries( {
@NamedQuery(name = "PrintedCard.findAll", query = "SELECT p FROM PrintedCard p"),
@NamedQuery(name = "PrintedCard.findById", query = "SELECT p FROM PrintedCard p WHERE p.id = :id"),
@NamedQuery(name = "PrintedCard.findByPrintTime", query = "SELECT p FROM PrintedCard p WHERE p.printTime = :printTime"),
@NamedQuery(name = "PrintedCard.findByBarcode", query = "SELECT p FROM PrintedCard p WHERE p.barcode = :barcode"),
@NamedQuery(name = "PrintedCard.findByEnabled", query = "SELECT p FROM PrintedCard p WHERE p.enabled = :enabled"),
@NamedQuery(name = "PrintedCard.findByRfidUid", query = "SELECT p FROM PrintedCard p WHERE p.rfidUid = :rfidUid") })
@NamedQuery(name = "PrintedCard.findAll", query = "SELECT p FROM PrintedCard p"),
@NamedQuery(name = "PrintedCard.findByPrintTime", query = "SELECT p FROM PrintedCard p WHERE p.printTime = :printTime"),
@NamedQuery(name = "PrintedCard.findByBarcode", query = "SELECT p FROM PrintedCard p WHERE p.barcode = :barcode"),
@NamedQuery(name = "PrintedCard.findByEnabled", query = "SELECT p FROM PrintedCard p WHERE p.enabled = :enabled"),
@NamedQuery(name = "PrintedCard.findByRfidUid", query = "SELECT p FROM PrintedCard p WHERE p.rfidUid = :rfidUid") })
public class PrintedCard implements ModelInterface {
private static final long serialVersionUID = 1L;
@Id
......@@ -77,124 +77,124 @@ public class PrintedCard implements ModelInterface {
@Override
public Integer getId() {
return id;
return id;
}
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
public PrintedCard(Integer printedCardsId) {
this.id = printedCardsId;
this.id = printedCardsId;
}
public PrintedCard(Integer printedCardsId, Date printTime,
boolean cardEnabled) {
this.id = printedCardsId;
this.printTime = printTime;
this.enabled = cardEnabled;
boolean cardEnabled) {
this.id = printedCardsId;
this.printTime = printTime;
this.enabled = cardEnabled;
}
public Date getPrintTime() {
return printTime;
return printTime;
}
public void setPrintTime(Date printTime) {
this.printTime = printTime;
this.printTime = printTime;
}
public String getBarcode() {
return barcode;
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
this.barcode = barcode;
}
public boolean getEnabled() {
return enabled;
return enabled;
}
public void setEnabled(boolean cardEnabled) {
this.enabled = cardEnabled;
this.enabled = cardEnabled;
}
public String getRfidUid() {
return rfidUid;
return rfidUid;
}
public void setRfidUid(String rfidUid) {
this.rfidUid = rfidUid;
this.rfidUid = rfidUid;
}
public List<ReaderEvent> getReaderEvents() {
return readerEvents;
return readerEvents;
}
public void setReaderEvents(List<ReaderEvent> readerEventList) {
this.readerEvents = readerEventList;
this.readerEvents = readerEventList;
}
public Location getCurrentLocation() {
return currentLocation;
return currentLocation;
}
public void setCurrentLocation(Location currentLocation) {
this.currentLocation = currentLocation;
this.currentLocation = currentLocation;
}
public User getUser() {
return user;
return user;
}
public void setUser(User usersId) {
this.user = usersId;
this.user = usersId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof PrintedCard)) {
return false;
}
PrintedCard other = (PrintedCard) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof PrintedCard)) {
return false;
}
PrintedCard other = (PrintedCard) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.PrintedCard[id=" + id + "]";
return "fi.insomnia.bortal.model.PrintedCard[id=" + id + "]";
}
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
public void setTemplate(CardTemplate template) {
this.template = template;
this.template = template;
}
public CardTemplate getTemplate() {
return template;
return template;
}
}
......@@ -26,12 +26,12 @@ import javax.persistence.Version;
@Entity
@Table(name = "products")
@NamedQueries( {
@NamedQuery(name = "Product.findAll", query = "SELECT p FROM Product p"),
@NamedQuery(name = "Product.findById", query = "SELECT p FROM Product p WHERE p.id = :id"),
@NamedQuery(name = "Product.findByProductName", query = "SELECT p FROM Product p WHERE p.name = :name"),
@NamedQuery(name = "Product.findByPrice", query = "SELECT p FROM Product p WHERE p.price = :price"),
@NamedQuery(name = "Product.findBySort", query = "SELECT p FROM Product p WHERE p.sort = :sort"),
@NamedQuery(name = "Product.findByBarcode", query = "SELECT p FROM Product p WHERE p.barcode = :barcode") })
@NamedQuery(name = "Product.findAll", query = "SELECT p FROM Product p"),
@NamedQuery(name = "Product.findByProductName", query = "SELECT p FROM Product p WHERE p.name = :name"),
@NamedQuery(name = "Product.findByPrice", query = "SELECT p FROM Product p WHERE p.price = :price"),
@NamedQuery(name = "Product.findBySort", query = "SELECT p FROM Product p WHERE p.sort = :sort"),
@NamedQuery(name = "Product.findByBarcode", query = "SELECT p FROM Product p WHERE p.barcode = :barcode") })
public class Product implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -73,95 +73,95 @@ public class Product implements ModelInterface {
}
public Product(Integer productsId) {
this.id = productsId;
this.id = productsId;
}
public Product(Integer productsId, BigInteger price, int sort) {
this.id = productsId;
this.price = price;
this.sort = sort;
this.id = productsId;
this.price = price;
this.sort = sort;
}
public String getName() {
return name;
return name;
}
public void setName(String productName) {
this.name = productName;
this.name = productName;
}
public BigInteger getPrice() {
return price;
return price;
}
public void setPrice(BigInteger price) {
this.price = price;
this.price = price;
}
public int getSort() {
return sort;
return sort;
}
public void setSort(int sort) {
this.sort = sort;
this.sort = sort;
}
public String getBarcode() {
return barcode;
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
this.barcode = barcode;
}
public List<Place> getPlaces() {
return places;
return places;
}
public void setPlaces(List<Place> placeList) {
this.places = placeList;
this.places = placeList;
}
public List<AccountEvent> getAccountEvents() {
return accountEvents;
return accountEvents;
}
public void setAccountEvents(List<AccountEvent> accountEventList) {
this.accountEvents = accountEventList;
this.accountEvents = accountEventList;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Product)) {
return false;
}
Product other = (Product) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Product)) {
return false;
}
Product other = (Product) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.Product[productsId=" + getId() + "]";
return "fi.insomnia.bortal.model.Product[productsId=" + getId() + "]";
}
/**
* @return the foodWaveTemplate
*/
public List<FoodWaveTemplate> getFoodWaveTemplate() {
return foodWaveTemplate;
return foodWaveTemplate;
}
/**
......@@ -169,7 +169,7 @@ public class Product implements ModelInterface {
* the foodWaveTemplate to set
*/
public void setFoodWaveTemplate(List<FoodWaveTemplate> foodWaveTemplate) {
this.foodWaveTemplate = foodWaveTemplate;
this.foodWaveTemplate = foodWaveTemplate;
}
/**
......@@ -177,7 +177,7 @@ public class Product implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -186,7 +186,7 @@ public class Product implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -194,7 +194,7 @@ public class Product implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -203,14 +203,14 @@ public class Product implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
public void setDiscounts(List<Discount> discounts) {
this.discounts = discounts;
this.discounts = discounts;
}
public List<Discount> getDiscounts() {
return discounts;
return discounts;
}
}
......@@ -24,10 +24,10 @@ import javax.persistence.Version;
@Entity
@Table(name = "readers")
@NamedQueries( {
@NamedQuery(name = "Reader.findAll", query = "SELECT r FROM Reader r"),
@NamedQuery(name = "Reader.findById", query = "SELECT r FROM Reader r WHERE r.id = :id"),
@NamedQuery(name = "Reader.findByIdentification", query = "SELECT r FROM Reader r WHERE r.identification = :identification"),
@NamedQuery(name = "Reader.findByDescription", query = "SELECT r FROM Reader r WHERE r.description = :description") })
@NamedQuery(name = "Reader.findAll", query = "SELECT r FROM Reader r"),
@NamedQuery(name = "Reader.findByIdentification", query = "SELECT r FROM Reader r WHERE r.identification = :identification"),
@NamedQuery(name = "Reader.findByDescription", query = "SELECT r FROM Reader r WHERE r.description = :description") })
public class Reader implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -57,66 +57,66 @@ public class Reader implements ModelInterface {
}
public Reader(Integer readersId) {
this.id = readersId;
this.id = readersId;
}
public String getIdentification() {
return identification;
return identification;
}
public void setIdentification(String readerId) {
this.identification = readerId;
this.identification = readerId;
}
public String getDescription() {
return description;
return description;
}
public void setDescription(String readerDescription) {
this.description = readerDescription;
this.description = readerDescription;
}
public List<ReaderEvent> getEvents() {
return events;
return events;
}
public void setEvents(List<ReaderEvent> readerEventList) {
this.events = readerEventList;
this.events = readerEventList;
}
public Location getLocation() {
return location;
return location;
}
public void setLocation(Location locationsId) {
this.location = locationsId;
this.location = locationsId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Reader)) {
return false;
}
Reader other = (Reader) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Reader)) {
return false;
}
Reader other = (Reader) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.Reader[id=" + getId() + "]";
return "fi.insomnia.bortal.model.Reader[id=" + getId() + "]";
}
/**
......@@ -124,7 +124,7 @@ public class Reader implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -133,7 +133,7 @@ public class Reader implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -141,7 +141,7 @@ public class Reader implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -150,6 +150,6 @@ public class Reader implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -24,10 +24,10 @@ import javax.persistence.Version;
@Entity
@Table(name = "reader_events")
@NamedQueries( {
@NamedQuery(name = "ReaderEvent.findAll", query = "SELECT r FROM ReaderEvent r"),
@NamedQuery(name = "ReaderEvent.findById", query = "SELECT r FROM ReaderEvent r WHERE r.id = :id"),
@NamedQuery(name = "ReaderEvent.findByTime", query = "SELECT r FROM ReaderEvent r WHERE r.time = :time"),
@NamedQuery(name = "ReaderEvent.findByValue", query = "SELECT r FROM ReaderEvent r WHERE r.value = :value") })
@NamedQuery(name = "ReaderEvent.findAll", query = "SELECT r FROM ReaderEvent r"),
@NamedQuery(name = "ReaderEvent.findByTime", query = "SELECT r FROM ReaderEvent r WHERE r.time = :time"),
@NamedQuery(name = "ReaderEvent.findByValue", query = "SELECT r FROM ReaderEvent r WHERE r.value = :value") })
public class ReaderEvent implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -59,71 +59,71 @@ public class ReaderEvent implements ModelInterface {
}
public ReaderEvent(Integer readerEventsId) {
this.id = readerEventsId;
this.id = readerEventsId;
}
public ReaderEvent(Integer readerEventsId, Date eventTime) {
this.id = readerEventsId;
this.time = eventTime;
this.id = readerEventsId;
this.time = eventTime;
}
public Date getTime() {
return time;
return time;
}
public void setTime(Date eventTime) {
this.time = eventTime;
this.time = eventTime;
}
public String getValue() {
return value;
return value;
}
public void setValue(String value) {
this.value = value;
this.value = value;
}
public PrintedCard getPrintedCard() {
return printedCard;
return printedCard;
}
public void setPrintedCard(PrintedCard printedCardsId) {
this.printedCard = printedCardsId;
this.printedCard = printedCardsId;
}
public Reader getReader() {
return reader;
return reader;
}
public void setReader(Reader readersId) {
this.reader = readersId;
this.reader = readersId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof ReaderEvent)) {
return false;
}
ReaderEvent other = (ReaderEvent) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof ReaderEvent)) {
return false;
}
ReaderEvent other = (ReaderEvent) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.ReaderEvent[id=" + getId() + "]";
return "fi.insomnia.bortal.model.ReaderEvent[id=" + getId() + "]";
}
/**
......@@ -131,7 +131,7 @@ public class ReaderEvent implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -140,7 +140,7 @@ public class ReaderEvent implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -148,7 +148,7 @@ public class ReaderEvent implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -157,6 +157,6 @@ public class ReaderEvent implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
}
......@@ -26,9 +26,9 @@ import javax.persistence.Version;
@Entity
@Table(name = "roles")
@NamedQueries( {
@NamedQuery(name = "Role.findAll", query = "SELECT r FROM Role r"),
@NamedQuery(name = "Role.findById", query = "SELECT r FROM Role r WHERE r.id = :id"),
@NamedQuery(name = "Role.findByRoleName", query = "SELECT r FROM Role r WHERE r.name = :name") })
@NamedQuery(name = "Role.findAll", query = "SELECT r FROM Role r"),
@NamedQuery(name = "Role.findByRoleName", query = "SELECT r FROM Role r WHERE r.name = :name") })
public class Role implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -73,71 +73,71 @@ public class Role implements ModelInterface {
}
public Role(Integer rolesId) {
this.id = rolesId;
this.id = rolesId;
}
public Role(Integer rolesId, String roleName) {
this.id = rolesId;
this.name = roleName;
this.id = rolesId;
this.name = roleName;
}
public String getName() {
return name;
return name;
}
public void setName(String roleName) {
this.name = roleName;
this.name = roleName;
}
public List<RoleRight> getRoleRights() {
return roleRights;
return roleRights;
}
public void setRoleRights(List<RoleRight> roleRightList) {
this.roleRights = roleRightList;
this.roleRights = roleRightList;
}
public CardTemplate getCardTemplate() {
return cardTemplate;
return cardTemplate;
}
public void setCardTemplate(CardTemplate cardTemplatesId) {
this.cardTemplate = cardTemplatesId;
this.cardTemplate = cardTemplatesId;
}
public Event getEvent() {
return event;
return event;
}
public void setEvent(Event eventsId) {
this.event = eventsId;
this.event = eventsId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Role)) {
return false;
}
Role other = (Role) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Role)) {
return false;
}
Role other = (Role) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.Role[id=" + getId() + "]";
return "fi.insomnia.bortal.model.Role[id=" + getId() + "]";
}
/**
......@@ -145,7 +145,7 @@ public class Role implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -154,7 +154,7 @@ public class Role implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -162,7 +162,7 @@ public class Role implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -171,38 +171,38 @@ public class Role implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
public void setUsers(List<User> users) {
this.users = users;
this.users = users;
}
public List<User> getUsers() {
return users;
return users;
}
public void setDiscounts(List<Discount> discounts) {
this.discounts = discounts;
this.discounts = discounts;
}
public List<Discount> getDiscounts() {
return discounts;
return discounts;
}
public void setParents(List<Role> parents) {
this.parents = parents;
this.parents = parents;
}
public List<Role> getParents() {
return parents;
return parents;
}
public void setChildren(List<Role> children) {
this.children = children;
this.children = children;
}
public List<Role> getChildren() {
return children;
return children;
}
}
......@@ -22,7 +22,7 @@ import javax.persistence.Version;
@Table(name = "role_rights")
@NamedQueries( {
@NamedQuery(name = "RoleRight.findAll", query = "SELECT r FROM RoleRight r"),
@NamedQuery(name = "RoleRight.findById", query = "SELECT r FROM RoleRight r WHERE r.id = :id"),
@NamedQuery(name = "RoleRight.findByRead", query = "SELECT r FROM RoleRight r WHERE r.read = :read"),
@NamedQuery(name = "RoleRight.findByWrite", query = "SELECT r FROM RoleRight r WHERE r.write = :write"),
@NamedQuery(name = "RoleRight.findByExecute", query = "SELECT r FROM RoleRight r WHERE r.execute = :execute") })
......
......@@ -21,11 +21,11 @@ import javax.persistence.Version;
@Entity
@Table(name = "user_images")
@NamedQueries( {
@NamedQuery(name = "UserImage.findAll", query = "SELECT u FROM UserImage u"),
@NamedQuery(name = "UserImage.findById", query = "SELECT u FROM UserImage u WHERE u.id = :id"),
@NamedQuery(name = "UserImage.findByName", query = "SELECT u FROM UserImage u WHERE u.name = :name"),
@NamedQuery(name = "UserImage.findByDescription", query = "SELECT u FROM UserImage u WHERE u.description = :description"),
@NamedQuery(name = "UserImage.findByMimeType", query = "SELECT u FROM UserImage u WHERE u.mimeType = :mimeType") })
@NamedQuery(name = "UserImage.findAll", query = "SELECT u FROM UserImage u"),
@NamedQuery(name = "UserImage.findByName", query = "SELECT u FROM UserImage u WHERE u.name = :name"),
@NamedQuery(name = "UserImage.findByDescription", query = "SELECT u FROM UserImage u WHERE u.description = :description"),
@NamedQuery(name = "UserImage.findByMimeType", query = "SELECT u FROM UserImage u WHERE u.mimeType = :mimeType") })
public class UserImage implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -59,66 +59,66 @@ public class UserImage implements ModelInterface {
}
public UserImage(Integer userImagesId) {
this.id = userImagesId;
this.id = userImagesId;
}
public String getName() {
return name;
return name;
}
public void setName(String name) {
this.name = name;
this.name = name;
}
public String getDescription() {
return description;
return description;
}
public void setDescription(String description) {
this.description = description;
this.description = description;
}
public String getMimeType() {
return mimeType;
return mimeType;
}
public void setMimeType(String mimeType) {
this.mimeType = mimeType;
this.mimeType = mimeType;
}
public byte[] getImageData() {
return imageData;
return imageData;
}
public void setImageData(byte[] imageData) {
this.imageData = imageData;
this.imageData = imageData;
}
@Override
public int hashCode() {
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
int hash = 0;
hash += (getId() != null ? getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof UserImage)) {
return false;
}
UserImage other = (UserImage) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof UserImage)) {
return false;
}
UserImage other = (UserImage) object;
if ((this.getId() == null && other.getId() != null)
|| (this.getId() != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.UserImage[id=" + getId() + "]";
return "fi.insomnia.bortal.model.UserImage[id=" + getId() + "]";
}
/**
......@@ -126,7 +126,7 @@ public class UserImage implements ModelInterface {
*/
@Override
public Integer getId() {
return id;
return id;
}
/**
......@@ -135,7 +135,7 @@ public class UserImage implements ModelInterface {
*/
@Override
public void setId(Integer id) {
this.id = id;
this.id = id;
}
/**
......@@ -143,7 +143,7 @@ public class UserImage implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -152,14 +152,14 @@ public class UserImage implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
/**
* @return the user
*/
public User getUser() {
return user;
return user;
}
/**
......@@ -167,6 +167,6 @@ public class UserImage implements ModelInterface {
* the user to set
*/
public void setUser(User user) {
this.user = user;
this.user = user;
}
}
......@@ -24,12 +24,12 @@ import javax.persistence.Version;
*/
@Entity
@Table(name = "votes", uniqueConstraints = { @UniqueConstraint(columnNames = {
"entries_id", "users_id" }) })
"entries_id", "users_id" }) })
@NamedQueries( {
@NamedQuery(name = "Vote.findAll", query = "SELECT v FROM Vote v"),
@NamedQuery(name = "Vote.findById", query = "SELECT v FROM Vote v WHERE v.id = :id"),
@NamedQuery(name = "Vote.findByScore", query = "SELECT v FROM Vote v WHERE v.score = :score"),
@NamedQuery(name = "Vote.findByTime", query = "SELECT v FROM Vote v WHERE v.time = :time") })
@NamedQuery(name = "Vote.findAll", query = "SELECT v FROM Vote v"),
@NamedQuery(name = "Vote.findByScore", query = "SELECT v FROM Vote v WHERE v.score = :score"),
@NamedQuery(name = "Vote.findByTime", query = "SELECT v FROM Vote v WHERE v.time = :time") })
public class Vote implements ModelInterface {
private static final long serialVersionUID = 1L;
......@@ -55,64 +55,64 @@ public class Vote implements ModelInterface {
}
public Vote(Integer votesId) {
this.id = votesId;
this.id = votesId;
}
public Vote(Integer votesId, Date voteTime) {
this.id = votesId;
this.time = voteTime;
this.id = votesId;
this.time = voteTime;
}
@Override
public Integer getId() {
return id;
return id;
}
@Override
public void setId(Integer votesId) {
this.id = votesId;
this.id = votesId;
}
public Integer getScore() {
return score;
return score;
}
public void setScore(Integer score) {
this.score = score;
this.score = score;
}
public Date getTime() {
return time;
return time;
}
public void setTime(Date voteTime) {
this.time = voteTime;
this.time = voteTime;
}
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Vote)) {
return false;
}
Vote other = (Vote) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
// TODO: Warning - this method won't work in the case the id fields are
// not set
if (!(object instanceof Vote)) {
return false;
}
Vote other = (Vote) object;
if ((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "fi.insomnia.bortal.model.Vote[id=" + id + "]";
return "fi.insomnia.bortal.model.Vote[id=" + id + "]";
}
/**
......@@ -120,7 +120,7 @@ public class Vote implements ModelInterface {
*/
@Override
public int getJpaVersionField() {
return jpaVersionField;
return jpaVersionField;
}
/**
......@@ -129,14 +129,14 @@ public class Vote implements ModelInterface {
*/
@Override
public void setJpaVersionField(int jpaVersionField) {
this.jpaVersionField = jpaVersionField;
this.jpaVersionField = jpaVersionField;
}
/**
* @return the compoEntry
*/
public CompoEntry getCompoEntry() {
return compoEntry;
return compoEntry;
}
/**
......@@ -144,14 +144,14 @@ public class Vote implements ModelInterface {
* the compoEntry to set
*/
public void setCompoEntry(CompoEntry compoEntry) {
this.compoEntry = compoEntry;
this.compoEntry = compoEntry;
}
/**
* @return the voter
*/
public User getVoter() {
return voter;
return voter;
}
/**
......@@ -159,6 +159,6 @@ public class Vote implements ModelInterface {
* the voter to set
*/
public void setVoter(User voter) {
this.voter = voter;
this.voter = voter;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!