[DS-2763] Add much transience to make DSOs actually serializable

This commit is contained in:
Mark H. Wood
2015-11-13 16:02:09 -05:00
parent ebf09a0d2e
commit 6d2e3b3ea3
10 changed files with 36 additions and 31 deletions

View File

@@ -78,13 +78,13 @@ public class Item extends DSpaceObject implements DSpaceObjectLegacySupport
joinColumns = {@JoinColumn(name = "item_id") },
inverseJoinColumns = {@JoinColumn(name = "collection_id") }
)
private List<Collection> collections = new ArrayList<>();
private final List<Collection> collections = new ArrayList<>();
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "items")
private List<Bundle> bundles = new ArrayList<>();
private final List<Bundle> bundles = new ArrayList<>();
@Transient
private ItemService itemService;
private transient ItemService itemService;
protected Item() {
}