로그관리 GenerationType.IDENTITY로 다시 원복
This commit is contained in:
@@ -15,13 +15,7 @@ import lombok.NoArgsConstructor;
|
||||
@Table(name = "tb_audit_log")
|
||||
public class AuditLogEntity extends CommonCreateEntity {
|
||||
@Id
|
||||
@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)
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "audit_log_uid", nullable = false)
|
||||
private Long id;
|
||||
|
||||
|
||||
@@ -5,24 +5,19 @@ import com.kamco.cd.kamcoback.log.dto.EventType;
|
||||
import com.kamco.cd.kamcoback.postgres.CommonCreateEntity;
|
||||
import jakarta.persistence.*;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import java.time.ZonedDateTime;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.ZonedDateTime;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@NoArgsConstructor(access = AccessLevel.PROTECTED)
|
||||
@Table(name = "tb_error_log")
|
||||
public class ErrorLogEntity extends CommonCreateEntity {
|
||||
@Id
|
||||
@GeneratedValue(
|
||||
strategy = GenerationType.SEQUENCE,
|
||||
generator = "tb_error_log_error_log_uid_seq_gen")
|
||||
@SequenceGenerator(
|
||||
name = "tb_error_log_error_log_uid_seq_gen",
|
||||
sequenceName = "tb_error_log_error_log_uid_seq",
|
||||
allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "error_log_uid", nullable = false)
|
||||
private Long id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user