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