뱅크 상태 타입 추가

This commit is contained in:
byung eun park 2019-10-27 16:42:14 +09:00
parent 8d9e5f52f2
commit bbec9664f8
2 changed files with 10 additions and 8 deletions

View File

@ -1,7 +1,7 @@
package com.totopia.server.modules.moneys.entity; package com.totopia.server.modules.moneys.entity;
import com.totopia.server.commons.data.entity.DateAuditEntity; import com.totopia.server.commons.data.entity.UserDateAuditEntity;
import com.totopia.server.modules.user.type.StatusName; import com.totopia.server.modules.moneys.type.BankStateName;
import lombok.*; import lombok.*;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
@ -14,7 +14,7 @@ import javax.persistence.*;
@AllArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Builder @Builder
public class BankEntity extends DateAuditEntity { public class BankEntity extends UserDateAuditEntity {
private static final long serialVersionUID = -8628291684559836128L; private static final long serialVersionUID = -8628291684559836128L;
@ -23,10 +23,6 @@ public class BankEntity extends DateAuditEntity {
@SequenceGenerator(name = "bank_generator", sequenceName = "bank_sequence", initialValue = 1) @SequenceGenerator(name = "bank_generator", sequenceName = "bank_sequence", initialValue = 1)
private Long id; private Long id;
@Basic
@Column(name = "user_id", nullable = false)
private Long userId;
@Basic @Basic
@Column(name = "name", nullable = false, length = 100) @Column(name = "name", nullable = false, length = 100)
private String name; private String name;
@ -45,7 +41,7 @@ public class BankEntity extends DateAuditEntity {
@Basic @Basic
@Column(name = "status", nullable = false, length = 100) @Column(name = "status", nullable = false, length = 100)
private StatusName status; private BankStateName status;
@Basic @Basic
@Column(name = "descriptions", nullable = true, length = 1000) @Column(name = "descriptions", nullable = true, length = 1000)

View File

@ -0,0 +1,6 @@
package com.totopia.server.modules.moneys.type;
public enum BankStateName {
CONFIRM,
NOT_CONFIRM,
}