=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MapLegend.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MapLegend.java 2013-02-28 15:20:20 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MapLegend.java 2013-05-26 08:02:43 +0000 @@ -96,6 +96,12 @@ // Getters and setters // ------------------------------------------------------------------------- + @Override + public boolean haveUniqueNames() + { + return false; + } + @JsonProperty @JsonView( { DetailedView.class, ExportView.class } ) @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MapLegendSet.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MapLegendSet.java 2013-02-28 15:20:20 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MapLegendSet.java 2013-05-26 08:02:43 +0000 @@ -47,7 +47,7 @@ /** * @author Jan Henrik Overland */ -@JacksonXmlRootElement(localName = "mapLegendSet", namespace = DxfNamespaces.DXF_2_0) +@JacksonXmlRootElement( localName = "mapLegendSet", namespace = DxfNamespaces.DXF_2_0 ) public class MapLegendSet extends BaseIdentifiableObject { @@ -109,8 +109,8 @@ // ------------------------------------------------------------------------- @JsonProperty - @JsonView({ DetailedView.class, ExportView.class }) - @JacksonXmlProperty(namespace = DxfNamespaces.DXF_2_0) + @JsonView( { DetailedView.class, ExportView.class } ) + @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) public String getSymbolizer() { return symbolizer; @@ -122,10 +122,9 @@ } @JsonProperty - // @JsonDeserialize( using = JacksonMapLegendsDeserializer.class ) - @JsonView({ DetailedView.class, ExportView.class }) - @JacksonXmlElementWrapper(localName = "mapLegends", namespace = DxfNamespaces.DXF_2_0) - @JacksonXmlProperty(localName = "mapLegend", namespace = DxfNamespaces.DXF_2_0) + @JsonView( { DetailedView.class, ExportView.class } ) + @JacksonXmlElementWrapper( localName = "mapLegends", namespace = DxfNamespaces.DXF_2_0 ) + @JacksonXmlProperty( localName = "mapLegend", namespace = DxfNamespaces.DXF_2_0 ) public Set getMapLegends() { return mapLegends; === modified file 'dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/importers/DefaultIdentifiableObjectImporter.java' --- dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/importers/DefaultIdentifiableObjectImporter.java 2013-04-26 07:12:45 +0000 +++ dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/importers/DefaultIdentifiableObjectImporter.java 2013-05-26 08:02:43 +0000 @@ -110,7 +110,7 @@ @Autowired private SessionFactory sessionFactory; - @Autowired( required = false ) + @Autowired(required = false) private List> objectHandlers; //-------------------------------------------------------------------------------------------------------