mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Move XMLElement of community.subcommunities to getter to prevent errors
This commit is contained in:
@@ -38,8 +38,6 @@ public class Community extends DSpaceObject{
|
||||
private String copyrightText, introductoryText, shortDescription, sidebarText;
|
||||
private Integer countItems;
|
||||
|
||||
// Renamed because of xml annotation exception with this attribute and getSubCommunities.
|
||||
@XmlElement(name = "subcommunities", required = true)
|
||||
private List<Community> subcommunities = new ArrayList<Community>();
|
||||
|
||||
private List<Collection> collections = new ArrayList<Collection>();
|
||||
@@ -173,6 +171,8 @@ public class Community extends DSpaceObject{
|
||||
return logo;
|
||||
}
|
||||
|
||||
// Renamed because of xml annotation exception with this attribute and getSubCommunities.
|
||||
@XmlElement(name = "subcommunities", required = true)
|
||||
public List<Community> getSubcommunities() {
|
||||
return subcommunities;
|
||||
}
|
||||
|
Reference in New Issue
Block a user