Commit 3cc46a85 authored by Matija Obreza's avatar Matija Obreza

JSON prop "_type" conflicts with Elasticsearch

- Renamed to "_class"
parent 53efa2cf
......@@ -34,7 +34,7 @@ import com.fasterxml.jackson.databind.annotation.JsonAppend;
* The Class BasicModel.
*/
@MappedSuperclass
@JsonAppend(props = { @JsonAppend.Prop(name = "_type", value = JsonClassNameWriter.class, type = String.class) })
@JsonAppend(props = { @JsonAppend.Prop(name = "_class", value = JsonClassNameWriter.class, type = String.class) })
public class BasicModel implements EntityId, Serializable {
/** The Constant serialVersionUID. */
......
......@@ -27,7 +27,7 @@ import org.genesys.blocks.util.JsonClassNameWriter;
/**
* Interface label for entities that require ACL security.
*/
@JsonAppend(props = { @JsonAppend.Prop(name = "_type", value = JsonClassNameWriter.class, type = String.class),
@JsonAppend(props = { @JsonAppend.Prop(name = "_class", value = JsonClassNameWriter.class, type = String.class),
@JsonAppend.Prop(name = "_permissions", value = CurrentPermissionsWriter.class, type = Permissions.class) })
public interface AclAwareModel extends Serializable, EntityId {
}
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