Commit a16fb368 authored by Matija Obreza's avatar Matija Obreza

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;
import javax.persistence.PrePersist;
import javax.persistence.Version;
import com.fasterxml.jackson.annotation.JsonView;
* The Class VersionedModel.
......@@ -35,7 +33,6 @@ public abstract class VersionedModel extends BasicModel implements Activatable {
private static final long serialVersionUID = 6486704708017489425L;
/** The version. */
@JsonView({ JsonViews.Update.class, JsonViews.Protected.class })
@Column(nullable = false)
Integer version = null;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment