mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 04:23:13 +00:00
[DS-2976] Ensure all database entities have a protected constructor
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
package org.dspace.content;
|
||||
|
||||
import org.dspace.core.Context;
|
||||
import org.hibernate.annotations.Type;
|
||||
import org.hibernate.proxy.HibernateProxyHelper;
|
||||
|
||||
@@ -65,7 +66,14 @@ public class MetadataValue
|
||||
@JoinColumn(name="dspace_object_id")
|
||||
protected DSpaceObject dSpaceObject;
|
||||
|
||||
protected MetadataValue() {
|
||||
/**
|
||||
* Protected constructor, create object using:
|
||||
* {@link org.dspace.content.service.MetadataValueService#create(Context, DSpaceObject, MetadataField)}
|
||||
*
|
||||
*/
|
||||
protected MetadataValue()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user