Change table declaration so unique unique constraints aren't generated.

This commit is contained in:
Kavin 2022-04-06 17:34:20 +01:00
parent 46d9dd1a2e
commit ad89de49a0
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -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<PlaylistVideo> videos;