fix conflict

This commit is contained in:
Tom Desair
2016-04-07 16:31:10 +02:00
committed by dylan
parent b19189634d
commit 8db0faed33
102 changed files with 665 additions and 535 deletions

View File

@@ -8,6 +8,7 @@
package org.dspace.content;
import org.dspace.core.Context;
import org.dspace.core.ReloadableEntity;
import org.hibernate.annotations.Type;
import org.hibernate.proxy.HibernateProxyHelper;
@@ -26,14 +27,14 @@ import javax.persistence.*;
*/
@Entity
@Table(name="metadatavalue")
public class MetadataValue
public class MetadataValue implements ReloadableEntity<Integer>
{
/** The reference to the metadata field */
@Id
@Column(name="metadata_value_id")
@GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="metadatavalue_seq")
@SequenceGenerator(name="metadatavalue_seq", sequenceName="metadatavalue_seq", allocationSize = 1)
private int valueId;
private Integer id;
/** The primary key for the metadata value */
@ManyToOne(fetch = FetchType.EAGER)
@@ -81,9 +82,9 @@ public class MetadataValue
*
* @return metadata value ID
*/
public int getValueId()
public Integer getID()
{
return valueId;
return id;
}
/**
@@ -238,11 +239,11 @@ public class MetadataValue
return false;
}
final MetadataValue other = (MetadataValue) obj;
if (this.valueId != other.valueId)
if (this.id != other.id)
{
return false;
}
if (this.getValueId() != other.getValueId())
if (this.getID() != other.getID())
{
return false;
}
@@ -257,8 +258,8 @@ public class MetadataValue
public int hashCode()
{
int hash = 7;
hash = 47 * hash + this.valueId;
hash = 47 * hash + this.getValueId();
hash = 47 * hash + this.id;
hash = 47 * hash + this.getID();
hash = 47 * hash + this.getDSpaceObject().getID().hashCode();
return hash;
}