From 3a18d726e5d2d520307c556f46b5d77381f15e83 Mon Sep 17 00:00:00 2001 From: Morten Solberg Date: Fri, 24 Jan 2025 07:19:33 +0100 Subject: [PATCH] FKS-1048: Add constructors --- src/main/java/no/fintlabs/audit/AuditEntity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/no/fintlabs/audit/AuditEntity.java b/src/main/java/no/fintlabs/audit/AuditEntity.java index 9697179..dfeb9cf 100644 --- a/src/main/java/no/fintlabs/audit/AuditEntity.java +++ b/src/main/java/no/fintlabs/audit/AuditEntity.java @@ -2,6 +2,8 @@ import jakarta.persistence.EntityListeners; import jakarta.persistence.MappedSuperclass; +import lombok.AllArgsConstructor; +import lombok.NoArgsConstructor; import lombok.experimental.SuperBuilder; import org.springframework.data.annotation.CreatedBy; import org.springframework.data.annotation.CreatedDate; @@ -13,7 +15,8 @@ @EntityListeners(AuditingEntityListener.class) @MappedSuperclass -@SuperBuilder +@NoArgsConstructor +@AllArgsConstructor public class AuditEntity { @CreatedDate private Instant createdDate;