mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
enforce uniqueness
This commit is contained in:
@@ -13,6 +13,7 @@ import org.hibernate.annotations.Index;
|
|||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
public class FeedPushInfo extends AbstractModel {
|
public class FeedPushInfo extends AbstractModel {
|
||||||
|
|
||||||
|
@Column(unique = true)
|
||||||
@OneToOne(fetch = FetchType.LAZY)
|
@OneToOne(fetch = FetchType.LAZY)
|
||||||
private Feed feed;
|
private Feed feed;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user