File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
gd-yd-core/src/main/java/com/gdyd/gdydcore/domain/board Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 3
3
import com .gdyd .gdydcore .domain .common .BaseTimeEntity ;
4
4
import com .gdyd .gdydcore .domain .member .LikeList ;
5
5
import com .gdyd .gdydcore .domain .member .Member ;
6
+ import com .gdyd .gdydcore .domain .member .ScrapList ;
6
7
import com .gdyd .gdydcore .domain .report .Report ;
7
8
import jakarta .persistence .*;
8
9
import lombok .*;
@@ -53,6 +54,9 @@ public class Post extends BaseTimeEntity {
53
54
@ OneToMany (fetch = FetchType .LAZY , mappedBy = "post" , orphanRemoval = true )
54
55
List <LikeList > likeLists = new ArrayList <>();
55
56
57
+ @ OneToMany (fetch = FetchType .LAZY , mappedBy = "post" , orphanRemoval = true )
58
+ List <ScrapList > scrapLists = new ArrayList <>();
59
+
56
60
@ OneToMany (fetch = FetchType .LAZY , mappedBy = "post" , orphanRemoval = true )
57
61
List <Report > reports = new ArrayList <>();
58
62
You can’t perform that action at this time.
0 commit comments