From d8682c40fd29f3090ba54426638e094650e60f93 Mon Sep 17 00:00:00 2001 From: yeonsu Date: Wed, 29 May 2024 20:48:52 +0900 Subject: [PATCH] fix starategy --- src/main/java/org/capstone/maru/domain/Participation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/capstone/maru/domain/Participation.java b/src/main/java/org/capstone/maru/domain/Participation.java index 41b504f..4fd2eb3 100644 --- a/src/main/java/org/capstone/maru/domain/Participation.java +++ b/src/main/java/org/capstone/maru/domain/Participation.java @@ -3,6 +3,7 @@ import jakarta.persistence.Entity; import jakarta.persistence.FetchType; import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import jakarta.persistence.Index; import jakarta.persistence.JoinColumn; @@ -23,7 +24,7 @@ public class Participation { @Id - @GeneratedValue + @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @ManyToOne(fetch = FetchType.LAZY)