We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4fd0240 + f774a46 commit 9e302a8Copy full SHA for 9e302a8
src/main/java/com/back/domain/post/post/entity/Post.java
@@ -68,6 +68,7 @@ public class Post {
68
private List<Comment> comments = new ArrayList<>();
69
70
// Post → PostImage = 1:N
71
+ @Builder.Default
72
@OneToMany(mappedBy = "post", cascade = CascadeType.ALL, orphanRemoval = true)
73
@OrderBy("sortOrder ASC") // 조회 시 순서대로 정렬
74
private List<PostImage> images = new ArrayList<>();
@@ -76,6 +77,7 @@ public class Post {
76
77
@Column(name = "video_url")
78
private String videoUrl;
79
80
81
82
private List<PostTag> postTags = new ArrayList<>();
83
0 commit comments