From eab872f892d78b3b49ff63b73152fefa77e1b081 Mon Sep 17 00:00:00 2001 From: Martin Ledvinka Date: Thu, 10 Oct 2024 13:20:22 +0200 Subject: [PATCH] [kbss-cvut/termit-ui#537] Fix incorrect mapping of hiddenLabels in ReadOnlyTerm. --- .../java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTerm.java | 2 +- src/main/java/cz/cvut/kbss/termit/model/UserAccount.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTerm.java b/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTerm.java index e43283c94..a0152a0e7 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTerm.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTerm.java @@ -44,7 +44,7 @@ public class ReadOnlyTerm extends AbstractTerm { @OWLAnnotationProperty(iri = SKOS.ALT_LABEL) private Set altLabels; - @OWLAnnotationProperty(iri = SKOS.PREF_LABEL) + @OWLAnnotationProperty(iri = SKOS.HIDDEN_LABEL) private Set hiddenLabels; @OWLAnnotationProperty(iri = SKOS.SCOPE_NOTE) diff --git a/src/main/java/cz/cvut/kbss/termit/model/UserAccount.java b/src/main/java/cz/cvut/kbss/termit/model/UserAccount.java index 1de862f79..add68792d 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/UserAccount.java +++ b/src/main/java/cz/cvut/kbss/termit/model/UserAccount.java @@ -26,6 +26,7 @@ import cz.cvut.kbss.termit.model.util.HasIdentifier; import cz.cvut.kbss.termit.model.util.HasTypes; import cz.cvut.kbss.termit.security.model.UserRole; +import cz.cvut.kbss.termit.util.Utils; import cz.cvut.kbss.termit.util.Vocabulary; import jakarta.validation.constraints.NotBlank; @@ -272,6 +273,6 @@ public int hashCode() { @Override public String toString() { - return "UserAccount{" + getFullName() + ", username='" + username + '\'' + '}'; + return "UserAccount{" + Utils.uriToString(getUri()) + getFullName() + ", username='" + username + '\'' + '}'; } }