don't delete in a big transaction

This commit is contained in:
Athou
2013-06-16 16:32:46 +02:00
parent c2f0efb448
commit e6a091d351
3 changed files with 9 additions and 17 deletions

View File

@@ -49,7 +49,7 @@ public class FeedEntry extends AbstractModel {
@Temporal(TemporalType.TIMESTAMP)
private Date updated;
@OneToMany(mappedBy = "entry")
@OneToMany(mappedBy = "entry", cascade = CascadeType.REMOVE)
private Set<FeedEntryStatus> statuses;
public String getGuid() {