dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #33017
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16801: Annotated CategoryOption.categoryOptionGroups
------------------------------------------------------------
revno: 16801
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-09-24 15:56:25 +0200
message:
Annotated CategoryOption.categoryOptionGroups
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryOption.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryOption.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryOption.java 2014-08-15 07:40:20 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryOption.java 2014-09-24 13:56:25 +0000
@@ -230,6 +230,11 @@
this.categoryOptionCombos = categoryOptionCombos;
}
+ @JsonProperty
+ @JsonSerialize(contentAs = BaseIdentifiableObject.class)
+ @JsonView({ DetailedView.class })
+ @JacksonXmlElementWrapper(localName = "categoryOptionGroups", namespace = DxfNamespaces.DXF_2_0)
+ @JacksonXmlProperty(localName = "categoryOptionGroup", namespace = DxfNamespaces.DXF_2_0)
public Set<CategoryOptionGroup> getGroups()
{
return groups;