mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-10 19:43:10 +00:00
[DS-2976] Ensure all database entities have a protected constructor
This commit is contained in:
@@ -71,7 +71,16 @@ public class Community extends DSpaceObject implements DSpaceObjectLegacySupport
|
||||
@Transient
|
||||
protected transient CommunityService communityService;
|
||||
|
||||
protected Community() {
|
||||
/**
|
||||
* Protected constructor, create object using:
|
||||
* {@link org.dspace.content.service.CommunityService#create(Community, Context)}
|
||||
* or
|
||||
* {@link org.dspace.content.service.CommunityService#create(Community, Context, String)}
|
||||
*
|
||||
*/
|
||||
protected Community()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void addSubCommunity(Community subCommunity)
|
||||
|
Reference in New Issue
Block a user