Skip to content

Commit

Permalink
refactor: Review 생성자에 @nullable 표시
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimprodp authored and nayonsoso committed Feb 10, 2025
1 parent f3c666b commit 2ff61f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/main/java/reviewme/review/domain/Review.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.lang.Nullable;

@Entity
@Table(name = "new_review")
Expand Down Expand Up @@ -48,7 +49,7 @@ public class Review {
@Column(name = "created_at", nullable = false)
private LocalDateTime createdAt;

public Review(Long memberId, long templateId, long reviewGroupId, List<Answer> answers) {
public Review(@Nullable Long memberId, long templateId, long reviewGroupId, List<Answer> answers) {
this.memberId = memberId;
this.templateId = templateId;
this.reviewGroupId = reviewGroupId;
Expand Down

0 comments on commit 2ff61f3

Please sign in to comment.