From bb32ce99fcbd0511a07865fbee4853e36f98b373 Mon Sep 17 00:00:00 2001 From: suhaoh Date: Fri, 30 Aug 2024 19:59:38 +0900 Subject: [PATCH] =?UTF-8?q?[6]=20@superBuilder=20=EB=A5=BC=20@Builder=20?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/commerce_site/common/domain/BaseTimeEntity.java | 2 -- .../org/example/commerce_site/common/domain/IdKeyEntity.java | 2 -- src/main/java/org/example/commerce_site/domain/Partner.java | 4 ++-- src/main/java/org/example/commerce_site/domain/User.java | 4 ++-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/example/commerce_site/common/domain/BaseTimeEntity.java b/src/main/java/org/example/commerce_site/common/domain/BaseTimeEntity.java index 7fea193..f3f7a13 100644 --- a/src/main/java/org/example/commerce_site/common/domain/BaseTimeEntity.java +++ b/src/main/java/org/example/commerce_site/common/domain/BaseTimeEntity.java @@ -7,7 +7,6 @@ import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; @@ -16,7 +15,6 @@ @Getter @MappedSuperclass -@SuperBuilder @EntityListeners(AuditingEntityListener.class) @AllArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED) diff --git a/src/main/java/org/example/commerce_site/common/domain/IdKeyEntity.java b/src/main/java/org/example/commerce_site/common/domain/IdKeyEntity.java index 001e9c5..a87dc31 100644 --- a/src/main/java/org/example/commerce_site/common/domain/IdKeyEntity.java +++ b/src/main/java/org/example/commerce_site/common/domain/IdKeyEntity.java @@ -8,11 +8,9 @@ import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; @Getter @MappedSuperclass -@SuperBuilder @NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstructor public abstract class IdKeyEntity { diff --git a/src/main/java/org/example/commerce_site/domain/Partner.java b/src/main/java/org/example/commerce_site/domain/Partner.java index b35a1ef..7e50b75 100644 --- a/src/main/java/org/example/commerce_site/domain/Partner.java +++ b/src/main/java/org/example/commerce_site/domain/Partner.java @@ -5,15 +5,15 @@ import jakarta.persistence.Enumerated; import jakarta.persistence.Table; import lombok.AllArgsConstructor; +import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; import org.example.commerce_site.attribute.PartnerStatus; import org.example.commerce_site.common.domain.BaseTimeEntity; @Entity @Getter -@SuperBuilder +@Builder @NoArgsConstructor @AllArgsConstructor @Table(name = "partners") diff --git a/src/main/java/org/example/commerce_site/domain/User.java b/src/main/java/org/example/commerce_site/domain/User.java index 7bbe2c4..a46519e 100644 --- a/src/main/java/org/example/commerce_site/domain/User.java +++ b/src/main/java/org/example/commerce_site/domain/User.java @@ -5,15 +5,15 @@ import jakarta.persistence.Enumerated; import jakarta.persistence.Table; import lombok.AllArgsConstructor; +import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; import org.example.commerce_site.attribute.UserStatus; import org.example.commerce_site.common.domain.BaseTimeEntity; @Entity @Getter -@SuperBuilder +@Builder @NoArgsConstructor @AllArgsConstructor @Table(name = "users")