From b65f74ef5a07667e08b0a8e23392eae6e065229e Mon Sep 17 00:00:00 2001 From: Martin Ledvinka Date: Mon, 10 Jun 2024 14:17:36 +0200 Subject: [PATCH] [Fix] Serialize parentTerms before subTerms to ensure stable processing order compatible with reference resolution on client. --- src/main/java/cz/cvut/kbss/termit/dto/listing/TermDto.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cz/cvut/kbss/termit/dto/listing/TermDto.java b/src/main/java/cz/cvut/kbss/termit/dto/listing/TermDto.java index d46c851b6..550516537 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/listing/TermDto.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/listing/TermDto.java @@ -35,7 +35,7 @@ * Contains fewer data than a regular {@link cz.cvut.kbss.termit.model.Term}. */ @OWLClass(iri = SKOS.CONCEPT) -@JsonLdAttributeOrder({"uri", "label", "subTerms"}) +@JsonLdAttributeOrder({"uri", "label", "parentTerms", "subTerms"}) @JsonIgnoreProperties({"definition", "persistenceContext"}) public class TermDto extends AbstractTerm {