diff --git a/src/main/java/me/kavin/piped/utils/obj/db/Playlist.java b/src/main/java/me/kavin/piped/utils/obj/db/Playlist.java index 5447998..8908b30 100644 --- a/src/main/java/me/kavin/piped/utils/obj/db/Playlist.java +++ b/src/main/java/me/kavin/piped/utils/obj/db/Playlist.java @@ -42,8 +42,9 @@ public class Playlist { @JoinColumn(name = "owner") private User owner; - @ElementCollection(fetch = FetchType.LAZY) + @ManyToMany @Column(name = "videos") + @CollectionTable(name = "playlists_videos_ids") @OrderColumn(name = "videos_order") private List videos;