enforce uniqueness

This commit is contained in:
Athou
2013-05-21 13:47:20 +02:00
parent 23512e95a7
commit e388a56c8e

View File

@@ -13,6 +13,7 @@ import org.hibernate.annotations.Index;
@SuppressWarnings("serial")
public class FeedPushInfo extends AbstractModel {
@Column(unique = true)
@OneToOne(fetch = FetchType.LAZY)
private Feed feed;