mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +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.proxy.HibernateProxyHelper;
|
||||
|
||||
import javax.persistence.*;
|
||||
@@ -46,6 +47,11 @@ public class MetadataField {
|
||||
@Column(name="scope_note", columnDefinition = "text")
|
||||
private String scopeNote;
|
||||
|
||||
/**
|
||||
* Protected constructor, create object using:
|
||||
* {@link org.dspace.content.service.MetadataFieldService#create(Context, MetadataSchema, String, String, String)}
|
||||
*
|
||||
*/
|
||||
protected MetadataField()
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user