diff --git a/backend/domain-cvi/src/main/java/com/cvi/config/entity/BooleanToYNConverter.java b/backend/domain-cvi/src/main/java/com/cvi/config/entity/BooleanToYNConverter.java index 6b4332f8..658763eb 100644 --- a/backend/domain-cvi/src/main/java/com/cvi/config/entity/BooleanToYNConverter.java +++ b/backend/domain-cvi/src/main/java/com/cvi/config/entity/BooleanToYNConverter.java @@ -9,10 +9,10 @@ public class BooleanToYNConverter implements AttributeConverter @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