mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Fix parent/sub community mapping
This commit is contained in:
@@ -44,11 +44,11 @@ public class Community extends DSpaceObject implements DSpaceObjectLegacySupport
|
||||
joinColumns = {@JoinColumn(name = "parent_comm_id") },
|
||||
inverseJoinColumns = {@JoinColumn(name = "child_comm_id") }
|
||||
)
|
||||
private List<Community> parentCommunities = new ArrayList<>();
|
||||
|
||||
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "parentCommunities")
|
||||
private List<Community> subCommunities = new ArrayList<>();
|
||||
|
||||
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "subCommunities")
|
||||
private List<Community> parentCommunities = new ArrayList<>();
|
||||
|
||||
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "communities", cascade = {CascadeType.PERSIST})
|
||||
private List<Collection> collections = new ArrayList<>();
|
||||
|
||||
|
Reference in New Issue
Block a user