mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 10:34:25 +00:00
[DS-2976] Ensure all database entities have a protected constructor
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
package org.dspace.eperson;
|
||||
|
||||
import org.dspace.content.Collection;
|
||||
import org.dspace.core.Context;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
@@ -34,7 +35,14 @@ public class Subscription {
|
||||
@JoinColumn(name = "eperson_id")
|
||||
private EPerson ePerson;
|
||||
|
||||
protected Subscription() {
|
||||
/**
|
||||
* Protected constructor, create object using:
|
||||
* {@link org.dspace.eperson.service.SubscribeService#subscribe(Context, EPerson, Collection)}
|
||||
*
|
||||
*/
|
||||
protected Subscription()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
|
Reference in New Issue
Block a user