Skip to content

Commit

Permalink
[Weekly11/Image/IdSetting] feat: id generation type setting (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daolove0323 authored Nov 9, 2024
1 parent ec6eaa9 commit 3e16ec3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -22,7 +23,7 @@
public abstract class Image {

@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Setter(AccessLevel.NONE)
@Column(name = "image_id")
protected Long id;
Expand Down

0 comments on commit 3e16ec3

Please sign in to comment.