From f124c33e6bf782b3690dc8bbe3496525a95a537c Mon Sep 17 00:00:00 2001 From: younghoonkwon Date: Thu, 28 Oct 2021 13:01:32 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9B=90=EB=9E=98=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cvi/config/entity/BooleanToYNConverter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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