Add uploader_id as a second primary key.

This commit is contained in:
Kavin 2022-07-19 11:32:58 +05:30
parent 4b96f46025
commit fab35145e9
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -27,6 +27,7 @@ public class Video {
@Column(name = "thumbnail", length = 400)
private String thumbnail;
@Id
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "uploader_id", nullable = false)
private Channel channel;