Skip to content

Commit

Permalink
Implement no-args constructor for ClassificationFamily
Browse files Browse the repository at this point in the history
  • Loading branch information
mmwinther committed Dec 15, 2023
1 parent ca7e08d commit b938d89
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ClassificationSeries> classificationSeriesList;
private List<ClassificationSeries> classificationSeriesList;

public ClassificationFamily() {
}

public ClassificationFamily(Translatable name, String iconName) {
this.name = checkNotNull(name);
Expand Down Expand Up @@ -80,6 +83,7 @@ public List<ClassificationSeries> getClassificationSeriesBySectionAndClassificat
String section, ClassificationType classificationType) {
return getClassificationSeriesBySectionAndClassificationType(section, classificationType, false);
}

public List<ClassificationSeries> getClassificationSeriesBySectionAndClassificationType(String section,
ClassificationType classificationType, boolean publicOnly) {
// @formatter:off
Expand Down

0 comments on commit b938d89

Please sign in to comment.