relationships are lazy

This commit is contained in:
Athou
2013-07-04 23:55:50 +02:00
parent 4efa18f9e6
commit 1324f79df7

View File

@@ -4,6 +4,7 @@ import java.io.Serializable;
import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@@ -20,12 +21,12 @@ import org.hibernate.annotations.CacheConcurrencyStrategy;
public class FeedFeedEntry implements Serializable {
@Id
@ManyToOne
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "FEED_ID")
private Feed feed;
@Id
@ManyToOne
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "FEEDENTRY_ID")
private FeedEntry entry;