[DS-2976] Ensure all database entities have a protected constructor

This commit is contained in:
KevinVdV
2015-12-24 15:28:26 +01:00
parent 76c617e8c6
commit 69bdb15b3c
37 changed files with 343 additions and 17 deletions

View File

@@ -7,6 +7,7 @@
*/
package org.dspace.content;
import org.dspace.core.Context;
import org.hibernate.proxy.HibernateProxyHelper;
import javax.persistence.*;
@@ -43,7 +44,14 @@ public class MetadataSchema
@Column(name = "short_id", unique = true, length = 32)
private String name;
protected MetadataSchema() {
/**
* Protected constructor, create object using:
* {@link org.dspace.content.service.MetadataSchemaService#create(Context, String, String)}
*
*/
protected MetadataSchema()
{
}
@Override