diff --git a/src/main/java/org/ktc2/cokaen/wouldyouin/Image/persist/Image.java b/src/main/java/org/ktc2/cokaen/wouldyouin/Image/persist/Image.java index 608b30f3..436c436d 100644 --- a/src/main/java/org/ktc2/cokaen/wouldyouin/Image/persist/Image.java +++ b/src/main/java/org/ktc2/cokaen/wouldyouin/Image/persist/Image.java @@ -3,6 +3,7 @@ import jakarta.persistence.Column; import jakarta.persistence.EntityListeners; import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import jakarta.persistence.MappedSuperclass; import jakarta.validation.constraints.NotNull; @@ -22,7 +23,7 @@ public abstract class Image { @Id - @GeneratedValue + @GeneratedValue(strategy = GenerationType.IDENTITY) @Setter(AccessLevel.NONE) @Column(name = "image_id") protected Long id;