From bbec9664f88b9c642e2f2015000b628662253a2c Mon Sep 17 00:00:00 2001 From: byung eun park Date: Sun, 27 Oct 2019 16:42:14 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B1=85=ED=81=AC=20=EC=83=81=ED=83=9C=20?= =?UTF-8?q?=ED=83=80=EC=9E=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/modules/moneys/entity/BankEntity.java | 12 ++++-------- .../server/modules/moneys/type/BankStateName.java | 6 ++++++ 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 src/main/java/com/totopia/server/modules/moneys/type/BankStateName.java diff --git a/src/main/java/com/totopia/server/modules/moneys/entity/BankEntity.java b/src/main/java/com/totopia/server/modules/moneys/entity/BankEntity.java index a546228..584ad78 100644 --- a/src/main/java/com/totopia/server/modules/moneys/entity/BankEntity.java +++ b/src/main/java/com/totopia/server/modules/moneys/entity/BankEntity.java @@ -1,7 +1,7 @@ package com.totopia.server.modules.moneys.entity; -import com.totopia.server.commons.data.entity.DateAuditEntity; -import com.totopia.server.modules.user.type.StatusName; +import com.totopia.server.commons.data.entity.UserDateAuditEntity; +import com.totopia.server.modules.moneys.type.BankStateName; import lombok.*; import lombok.experimental.SuperBuilder; @@ -14,7 +14,7 @@ import javax.persistence.*; @AllArgsConstructor @EqualsAndHashCode(callSuper = false) @Builder -public class BankEntity extends DateAuditEntity { +public class BankEntity extends UserDateAuditEntity { private static final long serialVersionUID = -8628291684559836128L; @@ -23,10 +23,6 @@ public class BankEntity extends DateAuditEntity { @SequenceGenerator(name = "bank_generator", sequenceName = "bank_sequence", initialValue = 1) private Long id; - @Basic - @Column(name = "user_id", nullable = false) - private Long userId; - @Basic @Column(name = "name", nullable = false, length = 100) private String name; @@ -45,7 +41,7 @@ public class BankEntity extends DateAuditEntity { @Basic @Column(name = "status", nullable = false, length = 100) - private StatusName status; + private BankStateName status; @Basic @Column(name = "descriptions", nullable = true, length = 1000) diff --git a/src/main/java/com/totopia/server/modules/moneys/type/BankStateName.java b/src/main/java/com/totopia/server/modules/moneys/type/BankStateName.java new file mode 100644 index 0000000..e7e3880 --- /dev/null +++ b/src/main/java/com/totopia/server/modules/moneys/type/BankStateName.java @@ -0,0 +1,6 @@ +package com.totopia.server.modules.moneys.type; + +public enum BankStateName { + CONFIRM, + NOT_CONFIRM, +}