Skip to content

Commit

Permalink
fix: event에서 초기에 tag를 빈 태그를 조기화 하는 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hong-sile committed Jul 27, 2023
1 parent 4d1eb4a commit ff88a20
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.emmsale.comment.domain.Comment;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
Expand Down Expand Up @@ -35,7 +36,7 @@ public class Event extends BaseEntity {
@Column(nullable = false)
private String informationUrl;
@OneToMany(mappedBy = "event")
private List<EventTag> tags;
private List<EventTag> tags = new ArrayList<>();
@OneToMany(mappedBy = "event")
private List<Comment> comments;

Expand Down

0 comments on commit ff88a20

Please sign in to comment.