로그관리 id generated 방식 SEQUENCE로 수정 (이미 시퀀스로 하고 있었음)

This commit is contained in:
2025-12-15 15:01:07 +09:00
parent 2ee6f926b0
commit 038ef0c88e

View File

@@ -15,8 +15,14 @@ import lombok.NoArgsConstructor;
@Table(name = "tb_audit_log")
public class AuditLogEntity extends CommonCreateEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "audit_log_uid")
@GeneratedValue(
strategy = GenerationType.SEQUENCE,
generator = "tb_audit_log_audit_log_uid_seq_gen")
@SequenceGenerator(
name = "tb_audit_log_audit_log_uid_seq_gen",
sequenceName = "tb_audit_log_audit_log_uid_seq",
allocationSize = 1)
@Column(name = "audit_log_uid", nullable = false)
private Long id;
@Column(name = "user_uid")