Commit a16fb368 authored by Matija Obreza's avatar Matija Obreza
Browse files

Include VersionedModel#version in default serialization

- VersionedModel#version is too important to be available only in Protected view
parent 370304d6
...@@ -20,8 +20,6 @@ import javax.persistence.MappedSuperclass; ...@@ -20,8 +20,6 @@ import javax.persistence.MappedSuperclass;
import javax.persistence.PrePersist; import javax.persistence.PrePersist;
import javax.persistence.Version; import javax.persistence.Version;
import com.fasterxml.jackson.annotation.JsonView;
/** /**
* The Class VersionedModel. * The Class VersionedModel.
*/ */
...@@ -35,7 +33,6 @@ public abstract class VersionedModel extends BasicModel implements Activatable { ...@@ -35,7 +33,6 @@ public abstract class VersionedModel extends BasicModel implements Activatable {
private static final long serialVersionUID = 6486704708017489425L; private static final long serialVersionUID = 6486704708017489425L;
/** The version. */ /** The version. */
@JsonView({ JsonViews.Update.class, JsonViews.Protected.class })
@Version @Version
@Column(nullable = false) @Column(nullable = false)
Integer version = null; Integer version = null;
......
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