Skip to content

Commit

Permalink
change attribute converter
Browse files Browse the repository at this point in the history
  • Loading branch information
KochTobi committed Oct 16, 2024
1 parent ed264c9 commit 755c565
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ public String convertToDatabaseColumn(AnalysisMethod attribute) {
if (attribute == null) {
return null;
}
return attribute.abbreviation();
return attribute.name();
}

@Override
public AnalysisMethod convertToEntityAttribute(String dbData) {
if (dbData == null) {
return null;
}
return AnalysisMethod.forAbbreviation(dbData).orElse(null);
return AnalysisMethod.valueOf(dbData);
}

}

0 comments on commit 755c565

Please sign in to comment.