Skip to content

Commit 61aba57

Browse files
authored
Merge pull request #190 from dnd-side-project/dev
feat(PopularItem): ๊ฐ€์„/๊ฒจ์šธ ํ‚ค์›Œ๋“œ๋กœ ๋ณ€๊ฒฝ
2 parents ecc6d6c + 0e57aa2 commit 61aba57

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

โ€Žmain-server/src/main/java/com/example/demo/domain/cd/entity/Cd.javaโ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import lombok.Builder;
88
import lombok.Getter;
99
import 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

โ€Žmain-server/src/main/java/com/example/demo/domain/playlist/service/PlaylistSearchServiceImpl.javaโ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
ย (0)