From d32dd640264afc932bcef6185b122f9af48b1eae Mon Sep 17 00:00:00 2001 From: sunwoong Date: Thu, 4 Jan 2024 18:56:08 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=88=84=EB=9D=BD=EB=90=9C=20=EC=97=94?= =?UTF-8?q?=ED=8B=B0=ED=8B=B0=20=EC=98=B5=EC=85=98=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?(#8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/doorip/trip/domain/Participant.java | 10 +++++----- .../src/main/java/org/doorip/trip/domain/Trip.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doorip-domain/src/main/java/org/doorip/trip/domain/Participant.java b/doorip-domain/src/main/java/org/doorip/trip/domain/Participant.java index fd58ae8..6e6c70b 100644 --- a/doorip-domain/src/main/java/org/doorip/trip/domain/Participant.java +++ b/doorip-domain/src/main/java/org/doorip/trip/domain/Participant.java @@ -19,15 +19,15 @@ public class Participant extends BaseTimeEntity { @Column(nullable = false) @Enumerated(EnumType.STRING) private Role role; - @Column(nullable = false) + @Column(nullable = false, name = "style_a") private Integer styleA; - @Column(nullable = false) + @Column(nullable = false, name = "style_b") private Integer styleB; - @Column(nullable = false) + @Column(nullable = false, name = "style_c") private Integer styleC; - @Column(nullable = false) + @Column(nullable = false, name = "style_d") private Integer styleD; - @Column(nullable = false) + @Column(nullable = false, name = "style_e") private Integer styleE; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "user_id") diff --git a/doorip-domain/src/main/java/org/doorip/trip/domain/Trip.java b/doorip-domain/src/main/java/org/doorip/trip/domain/Trip.java index 265bf39..84139b1 100644 --- a/doorip-domain/src/main/java/org/doorip/trip/domain/Trip.java +++ b/doorip-domain/src/main/java/org/doorip/trip/domain/Trip.java @@ -16,7 +16,7 @@ @Entity public class Trip extends BaseTimeEntity { @Id - @GeneratedValue + @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "trip_id") private Long id; @Column(nullable = false)