fix annotation

This commit is contained in:
Athou
2013-05-21 13:49:42 +02:00
parent e388a56c8e
commit f5a6d6c830

View File

@@ -3,6 +3,7 @@ package com.commafeed.backend.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@@ -13,7 +14,7 @@ import org.hibernate.annotations.Index;
@SuppressWarnings("serial")
public class FeedPushInfo extends AbstractModel {
@Column(unique = true)
@JoinColumn(unique = true)
@OneToOne(fetch = FetchType.LAZY)
private Feed feed;