mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 20:13:17 +00:00
fix conflict
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user