mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-19 07:53:08 +00:00
[DS-2976] Ensure all database entities have a protected constructor
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
package org.dspace.versioning;
|
||||
|
||||
import org.dspace.content.Item;
|
||||
import org.dspace.core.Context;
|
||||
import org.dspace.eperson.EPerson;
|
||||
import org.hibernate.proxy.HibernateProxyHelper;
|
||||
|
||||
@@ -53,6 +54,20 @@ public class Version {
|
||||
@JoinColumn(name = "versionhistory_id")
|
||||
private VersionHistory versionHistory;
|
||||
|
||||
/**
|
||||
* Protected constructor, create object using:
|
||||
* {@link org.dspace.versioning.service.VersioningService#createNewVersion(Context, Item)}
|
||||
* or
|
||||
* {@link org.dspace.versioning.service.VersioningService#createNewVersion(Context, Item, String)}
|
||||
* or
|
||||
* {@link org.dspace.versioning.service.VersioningService#createNewVersion(Context, VersionHistory, Item, String, Date, int)}
|
||||
*
|
||||
*/
|
||||
protected Version()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
Reference in New Issue
Block a user