[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

@@ -64,7 +64,7 @@ public class EPerson extends DSpaceObject implements DSpaceObjectLegacySupport
private String digestAlgorithm;
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "epeople")
private List<Group> groups = new ArrayList<>();
private final List<Group> groups = new ArrayList<>();
/** The e-mail field (for sorting) */
public static final int EMAIL = 1;
@@ -82,7 +82,7 @@ public class EPerson extends DSpaceObject implements DSpaceObjectLegacySupport
public static final int LANGUAGE = 5;
@Transient
protected EPersonService ePersonService;
protected transient EPersonService ePersonService;
protected EPerson() {
}