diff --git a/pom.xml b/pom.xml index f1c22df..0dc7817 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ edu.stanford.protege webprotege-common - 0.9.5 + 0.9.6 org.springframework.boot diff --git a/src/main/java/edu/stanford/protege/webprotege/common/ProjectEvent.java b/src/main/java/edu/stanford/protege/webprotege/common/ProjectEvent.java index 1ade5fe..d717c9f 100644 --- a/src/main/java/edu/stanford/protege/webprotege/common/ProjectEvent.java +++ b/src/main/java/edu/stanford/protege/webprotege/common/ProjectEvent.java @@ -1,5 +1,7 @@ package edu.stanford.protege.webprotege.common; +import com.fasterxml.jackson.annotation.JsonTypeInfo; + import javax.annotation.Nonnull; /** @@ -9,6 +11,10 @@ * * An {@link Event} that is specific to a Project. */ + +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME +) public interface ProjectEvent extends Event { @Nonnull diff --git a/src/main/java/edu/stanford/protege/webprotege/common/ShortForm.java b/src/main/java/edu/stanford/protege/webprotege/common/ShortForm.java index 8809183..9230b01 100644 --- a/src/main/java/edu/stanford/protege/webprotege/common/ShortForm.java +++ b/src/main/java/edu/stanford/protege/webprotege/common/ShortForm.java @@ -2,6 +2,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeName; import com.google.auto.value.AutoValue; @@ -9,7 +10,7 @@ import javax.annotation.Nullable; @AutoValue - +@JsonTypeName(ShortForm.SHORT_FORM) public abstract class ShortForm { public static final String DICTIONARY_LANGUAGE = "dictionaryLanguage";