remove lazy loading

This commit is contained in:
Jeremie Panzer
2013-03-26 11:36:31 +01:00
parent 8f1061a8b2
commit e5e40dac23
6 changed files with 53 additions and 48 deletions

View File

@@ -5,7 +5,6 @@ import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
@@ -27,7 +26,7 @@ public class Feed extends AbstractModel {
@Column(length = 1024)
private String message;
@OneToMany(mappedBy = "feed", fetch = FetchType.EAGER)
@OneToMany(mappedBy = "feed")
private Set<FeedEntry> entries = Sets.newHashSet();
public Feed() {