fix conflict

This commit is contained in:
Tom Desair
2016-04-06 15:56:46 +02:00
committed by dylan
parent c1b3c6aed7
commit b19189634d
17 changed files with 311 additions and 108 deletions

View File

@@ -8,6 +8,8 @@
package org.dspace.content;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.dspace.authorize.ResourcePolicy;
import org.dspace.handle.Handle;
import org.hibernate.annotations.GenericGenerator;
@@ -44,7 +46,7 @@ public abstract class DSpaceObject implements Serializable
// Order by is here to ensure that the oldest handle is retrieved first,
// multiple handles are assigned to the latest version of an item the original handle will have the lowest identifier
// This handle is the prefered handle.
@OrderBy("handle_id ASC")
@OrderBy("id ASC")
private List<Handle> handles = new ArrayList<>();
@OneToMany(fetch = FetchType.LAZY, mappedBy = "dSpaceObject", cascade={CascadeType.PERSIST}, orphanRemoval = false)
@@ -192,4 +194,5 @@ public abstract class DSpaceObject implements Serializable
protected void setModified() {
this.modified = true;
}
}