Skip to content

Commit

Permalink
Fix AttributeConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Dec 8, 2023
1 parent ba9a3d7 commit 31cf3c6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ public String toString() {
}

@Converter
protected class ResourcePathConverter implements AttributeConverter<String, String> {
public static class ResourcePathConverter implements AttributeConverter<String, String> {

public ResourcePathConverter() {
}

private Optional<String> targetStack = Optional.ofNullable(System.getProperty("TARGET_STACK", null));
private static final Optional<String> targetStack = Optional.ofNullable(System.getProperty("TARGET_STACK", null));

@Override
public String convertToDatabaseColumn(String attribute) {
Expand Down

0 comments on commit 31cf3c6

Please sign in to comment.