File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
main-server/src/main/java/com/example/demo/domain Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 77import lombok .Builder ;
88import lombok .Getter ;
99import lombok .NoArgsConstructor ;
10+ import org .hibernate .annotations .OnDelete ;
11+ import org .hibernate .annotations .OnDeleteAction ;
1012
1113@ Getter
1214@ Entity
@@ -18,10 +20,12 @@ public class Cd extends BaseTimeEntity {
1820 private Long id ;
1921
2022 @ ManyToOne (fetch = FetchType .LAZY )
23+ @ OnDelete (action = OnDeleteAction .CASCADE )
2124 @ JoinColumn (name = "playlist_id" )
2225 private Playlist playlist ;
2326
2427 @ ManyToOne (fetch = FetchType .LAZY )
28+ @ OnDelete (action = OnDeleteAction .CASCADE )
2529 @ JoinColumn (name = "prop_id" )
2630 private Prop prop ;
2731
Original file line number Diff line number Diff line change @@ -38,13 +38,13 @@ public class PlaylistSearchServiceImpl implements PlaylistSearchService {
3838 private final CdService cdService ;
3939
4040 private static final List <PopularItem > DEFAULT_POPULAR_TERMS = List .of (
41- new PopularItem ("์ฌ๋ฆ " ),
42- new PopularItem ("๋ฐ์บ์ค ํ๋ฆฌ " ),
41+ new PopularItem ("๊ฒจ์ธ " ),
42+ new PopularItem ("ํฌ๋ฆฌ์ค๋ง์ค " ),
4343 new PopularItem ("์นดํ ์ฌ์ฆ ํ๋ ์ด๋ฆฌ์คํธ" ),
44- new PopularItem ("์ฌ๋ฆ์ฒญ๋ํ " ),
44+ new PopularItem ("์ฐ๋ง๊ฒฐ์ฐ " ),
4545 new PopularItem ("๊ฐ์ฑ ํํฉ" ),
46- new PopularItem ("์ ๋ง ์ฌ์์์ด๋ ๋ชจ์ " ),
47- new PopularItem ("๋๋ผ์ด๋ธ " ),
46+ new PopularItem ("๊ฐ์ ํ๋ ์ด๋ฆฌ์คํธ " ),
47+ new PopularItem ("์ด๋ณ " ),
4848 new PopularItem ("K-POP" ),
4949 new PopularItem ("์ธ๋๋ฐด๋์์
" )
5050 );
You canโt perform that action at this time.
0 commit comments