Skip to content

Commit

Permalink
refactor: 원래 코드로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
younghoonkwon committed Oct 28, 2021
1 parent bf18137 commit f124c33
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ public class BooleanToYNConverter implements AttributeConverter<Boolean, String>

@Override
public String convertToDatabaseColumn(Boolean attribute) {
if (Objects.isNull(attribute) || !attribute) {
return "N";
if (!Objects.isNull(attribute) && attribute) {
return "Y";
}
return "Y";
return "N";
}

@Override
Expand Down

0 comments on commit f124c33

Please sign in to comment.