Commit 9f0a7be4 authored by Matija Obreza's avatar Matija Obreza
Browse files

VersionedModel#version must not be null in database

parent b37b91d8
......@@ -28,6 +28,7 @@ public abstract class VersionedModel extends BasicModel implements Activatable {
@JsonView({ JsonViews.Update.class, JsonViews.Protected.class })
@Version
@Column(nullable = false)
Integer version = null;
/** Active by default! */
......
......@@ -29,6 +29,7 @@ public abstract class VersionedModelWithoutId implements Serializable, Activatab
@JsonView({ JsonViews.Update.class, JsonViews.Protected.class })
@Version
@Column(nullable = false)
Integer version = null;
/** Active by default! */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment