Skip to content

Commit

Permalink
✨ chore(domain): add constructor builder
Browse files Browse the repository at this point in the history
  • Loading branch information
siyeonSon committed Jun 6, 2024
1 parent cd22ed2 commit 66b03a0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

Expand All @@ -27,4 +28,9 @@ public class Announcement extends BaseTimeEntity {
@Column(nullable = false, length = 255)
private String content;

@Builder
public Announcement(String title, String content) {
this.title = title;
this.content = content;
}
}

0 comments on commit 66b03a0

Please sign in to comment.