From b938d89d73b46b06123e55384c6c257f207d05c1 Mon Sep 17 00:00:00 2001 From: mmwinther Date: Fri, 15 Dec 2023 15:30:59 +0100 Subject: [PATCH] Implement no-args constructor for ClassificationFamily --- .../no/ssb/klass/core/model/ClassificationFamily.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/klass-shared/src/main/java/no/ssb/klass/core/model/ClassificationFamily.java b/klass-shared/src/main/java/no/ssb/klass/core/model/ClassificationFamily.java index 7030dcdd..e3041ad3 100644 --- a/klass-shared/src/main/java/no/ssb/klass/core/model/ClassificationFamily.java +++ b/klass-shared/src/main/java/no/ssb/klass/core/model/ClassificationFamily.java @@ -26,11 +26,14 @@ public class ClassificationFamily extends BaseEntity { public static final String BASE_ICON_PATH = "/icons/"; @Column(nullable = false) @Convert(converter = TranslatablePersistenceConverter.class) - private final Translatable name; + private Translatable name; @Column(nullable = false) - private final String iconName; + private String iconName; @OneToMany(mappedBy = "classificationFamily", fetch = FetchType.LAZY) - private final List classificationSeriesList; + private List classificationSeriesList; + + public ClassificationFamily() { + } public ClassificationFamily(Translatable name, String iconName) { this.name = checkNotNull(name); @@ -80,6 +83,7 @@ public List getClassificationSeriesBySectionAndClassificat String section, ClassificationType classificationType) { return getClassificationSeriesBySectionAndClassificationType(section, classificationType, false); } + public List getClassificationSeriesBySectionAndClassificationType(String section, ClassificationType classificationType, boolean publicOnly) { // @formatter:off