Commit 566f5e64 authored by Matija Obreza's avatar Matija Obreza

BasicModel#id is included in Minimal JSON view

- ACL depends on having access to object IDs
parent 37d4869e
......@@ -41,7 +41,7 @@ public class BasicModel implements EntityId, Serializable {
private static final long serialVersionUID = 2709998920148999956L;
/** The id. */
@JsonView({ JsonViews.Update.class, JsonViews.Protected.class })
@JsonView({ JsonViews.Minimal.class, JsonViews.Update.class, JsonViews.Protected.class })
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id", unique = true, nullable = false)
......
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