diff --git a/set-mongo/src/main/java/eu/europeana/set/web/model/WebUser.java b/set-mongo/src/main/java/eu/europeana/set/web/model/WebUser.java index 95dbfbd4..beb8331f 100644 --- a/set-mongo/src/main/java/eu/europeana/set/web/model/WebUser.java +++ b/set-mongo/src/main/java/eu/europeana/set/web/model/WebUser.java @@ -3,6 +3,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import eu.europeana.set.definitions.model.agent.impl.Person; +import eu.europeana.set.definitions.model.vocabulary.AgentTypes; import eu.europeana.set.definitions.model.vocabulary.WebUserSetModelFields; @JsonInclude(value = JsonInclude.Include.NON_EMPTY) @@ -12,10 +13,9 @@ public WebUser() { super(); } - @Override @JsonProperty(WebUserSetModelFields.TYPE) - public String getType() { - return super.getType(); + public String getWebType() { + return AgentTypes.PERSON.getJsonValue(); } @Override