=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategory.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategory.java 2016-01-11 06:09:26 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategory.java 2016-01-11 06:37:10 +0000 @@ -50,9 +50,7 @@ import org.hisp.dhis.common.view.ExportView; import java.util.ArrayList; -import java.util.HashSet; import java.util.List; -import java.util.Set; /** * A Category is a dimension of a data element. DataElements can have sets of @@ -73,7 +71,7 @@ @Scanned private List categoryOptions = new ArrayList<>(); - private Set categoryCombos = new HashSet<>(); + private List categoryCombos = new ArrayList<>(); // ------------------------------------------------------------------------- // Constructors @@ -242,12 +240,12 @@ @JsonView( { DetailedView.class, ExportView.class } ) @JacksonXmlElementWrapper( localName = "categoryCombos", namespace = DxfNamespaces.DXF_2_0 ) @JacksonXmlProperty( localName = "categoryCombo", namespace = DxfNamespaces.DXF_2_0 ) - public Set getCategoryCombos() + public List getCategoryCombos() { return categoryCombos; } - public void setCategoryCombos( Set categoryCombos ) + public void setCategoryCombos( List categoryCombos ) { this.categoryCombos = categoryCombos; } === modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElementCategory.hbm.xml' --- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElementCategory.hbm.xml 2015-08-18 22:46:02 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElementCategory.hbm.xml 2016-01-11 06:37:10 +0000 @@ -3,7 +3,7 @@ "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd" [] -> + > @@ -19,6 +19,24 @@ + + + + + + + + + + + + + + + + @@ -30,15 +48,5 @@ - - - - - - - - -