Skip to content

Commit

Permalink
[6] @SuperBuilder@builder 로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ohsuha committed Aug 30, 2024
1 parent 5246003 commit bb32ce9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -16,7 +15,6 @@

@Getter
@MappedSuperclass
@SuperBuilder
@EntityListeners(AuditingEntityListener.class)
@AllArgsConstructor
@NoArgsConstructor(access = AccessLevel.PROTECTED)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/example/commerce_site/domain/Partner.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/example/commerce_site/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bb32ce9

Please sign in to comment.