Commit 6fd7ba35 by Tuomas Riihimäki

sedded int jpaVersionField; to jpaVersionField = 0;

1 parent 488b0809
Showing with 34 additions and 34 deletions
......@@ -73,7 +73,7 @@ public class AccessRight implements ModelInterface<Integer>{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public AccessRight() {
}
......
......@@ -121,7 +121,7 @@ public class AccountEvent implements EventChildInterface {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
@Override
public EventPk getId() {
......
......@@ -142,7 +142,7 @@ public class Bill implements EventChildInterface {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public Bill() {
}
......
......@@ -72,7 +72,7 @@ public class BillLine implements EventChildInterface {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
/**
* Calculate the total price for the items on this line
......
......@@ -51,7 +51,7 @@ public class CardTemplate implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public CardTemplate() {
}
......
......@@ -108,7 +108,7 @@ public class Compo implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
@Override
public EventPk getId() {
......
......@@ -92,7 +92,7 @@ public class CompoEntry implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
@Override
public EventPk getId() {
......
......@@ -68,7 +68,7 @@ public class CompoEntryFile implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
@Override
public EventPk getId() {
......
......@@ -59,7 +59,7 @@ public class CompoEntryParticipant implements EventChildInterface {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
@Override
public EventPk getId() {
......
......@@ -87,7 +87,7 @@ public class Discount implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public Discount() {
}
......
......@@ -55,7 +55,7 @@ public class DiscountInstance implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public DiscountInstance() {
}
......
......@@ -87,7 +87,7 @@ public class Event implements ModelInterface<Integer> {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
@OneToMany(mappedBy = "event")
private List<Bill> bills;
......
......@@ -54,7 +54,7 @@ public class EventMap implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
@OneToMany(mappedBy = "eventMap")
private List<Reader> readers;
......
......@@ -52,7 +52,7 @@ public class EventSettings implements ModelInterface<Integer> {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public EventSettings() {
}
......
......@@ -46,7 +46,7 @@ public class EventStatus implements ModelInterface<Integer> {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public EventStatus() {
}
......
......@@ -56,7 +56,7 @@ public class FoodWave implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public FoodWave() {
}
......
......@@ -44,7 +44,7 @@ public class FoodWaveTemplate implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public FoodWaveTemplate() {
}
......
......@@ -75,7 +75,7 @@ public class GroupMembership implements EventChildInterface {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public GroupMembership() {
}
......
......@@ -41,7 +41,7 @@ public class Location implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public Location() {
}
......
......@@ -58,7 +58,7 @@ public class LogEntry implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public LogEntry() {
}
......
......@@ -52,7 +52,7 @@ public class LogEntryType implements EventChildInterface {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
/**
* Admins can change the loglevel of EntryTypes to receive eg. email for
......
......@@ -74,7 +74,7 @@ public class News implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public News() {
}
......
......@@ -62,7 +62,7 @@ public class NewsGroup implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public NewsGroup() {
}
......
......@@ -92,7 +92,7 @@ public class Place implements EventChildInterface {
private User currentUser;
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public Place() {
}
......
......@@ -74,7 +74,7 @@ public class PlaceGroup implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public PlaceGroup() {
}
......
......@@ -76,7 +76,7 @@ public class PrintedCard implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public PrintedCard() {
}
......
......@@ -70,7 +70,7 @@ public class Product implements EventChildInterface {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public Product() {
}
......
......@@ -71,7 +71,7 @@ public class Reader implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public Reader() {
}
......
......@@ -59,7 +59,7 @@ public class ReaderEvent implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public ReaderEvent() {
}
......
......@@ -68,7 +68,7 @@ public class Role implements EventChildInterface {
private List<NewsGroup> newsGroups;
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public Role() {
}
......
......@@ -61,7 +61,7 @@ public class RoleRight implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public RoleRight() {
}
......
......@@ -162,7 +162,7 @@ public class User implements ModelInterface<Integer> {
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
@OneToMany(mappedBy = "admin")
private List<EventSettings> eventSettings;
......
......@@ -53,7 +53,7 @@ public class UserImage implements EventChildInterface{
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public UserImage() {
}
......
......@@ -53,7 +53,7 @@ public class Vote implements EventChildInterface{
private User voter;
@Version
@Column(nullable = false)
private int jpaVersionField;
private int jpaVersionField = 0;
public Vote() {
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!