From d3304ce619a12a41481d27b9c7423350957f957d Mon Sep 17 00:00:00 2001 From: Matthew Horridge Date: Sun, 16 Jun 2024 10:02:50 -0700 Subject: [PATCH] Fix the serialization of EntityNameControlDataDtos --- .../webprotege/forms/data/EntityNameControlDataDto.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/edu/stanford/protege/webprotege/forms/data/EntityNameControlDataDto.java b/src/main/java/edu/stanford/protege/webprotege/forms/data/EntityNameControlDataDto.java index 09a1b27..608eb7b 100644 --- a/src/main/java/edu/stanford/protege/webprotege/forms/data/EntityNameControlDataDto.java +++ b/src/main/java/edu/stanford/protege/webprotege/forms/data/EntityNameControlDataDto.java @@ -19,7 +19,7 @@ public abstract class EntityNameControlDataDto implements FormControlDataDto { @JsonCreator public static EntityNameControlDataDto get(@JsonProperty("descriptor") @Nonnull EntityNameControlDescriptor descriptor, - @JsonProperty("entityData") @Nonnull OWLEntityData entityData, + @JsonProperty("entity") @Nonnull OWLEntityData entityData, @JsonProperty("depth") int depth) { return new AutoValue_EntityNameControlDataDto(depth, descriptor, entityData); } @@ -29,7 +29,7 @@ public static EntityNameControlDataDto get(@JsonProperty("descriptor") @Nonnull public abstract EntityNameControlDescriptor getDescriptor(); @Nullable - @JsonProperty("term") + @JsonProperty("entity") protected abstract OWLEntityData getEntityInternal(); @JsonIgnore