Commit 32191fc8 authored by Matija Obreza's avatar Matija Obreza

Added JsonView.Minimal < JsonView.Public

parent c42edc89
......@@ -27,10 +27,17 @@ public class JsonViews {
}
/**
* The minimal JSON view.
*/
public static interface Minimal {
}
/**
* The Interface Public.
*/
public static interface Public {
public static interface Public extends Minimal {
}
......
......@@ -21,8 +21,6 @@ import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.PrePersist;
import com.fasterxml.jackson.annotation.JsonView;
/**
* The Class UuidEntity.
*/
......@@ -33,7 +31,6 @@ public abstract class UuidModel extends AuditedVersionedModel implements IdUUID
private static final long serialVersionUID = 2639238742778129554L;
/** The uuid. */
@JsonView({ JsonViews.Update.class, JsonViews.Public.class })
@Column(unique = true, updatable = false, nullable = false, columnDefinition = "binary(16)")
protected UUID uuid;
......
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