dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #28811
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14450: Renamed property DataElementCategory.dimensionType to .dataDimensionType
------------------------------------------------------------
revno: 14450
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-03-26 19:56:37 +0100
message:
Renamed property DataElementCategory.dimensionType to .dataDimensionType
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategory.java
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/hibernate/HibernateCategoryStore.java
dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElementCategory.hbm.xml
--
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/DataElementCategory.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategory.java 2014-03-18 08:10:10 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategory.java 2014-03-26 18:56:37 +0000
@@ -67,7 +67,7 @@
public static final String DEFAULT_NAME = "default";
- private String dimensionType;
+ private String dataDimensionType;
@Scanned
private List<DataElementCategoryOption> categoryOptions = new ArrayList<DataElementCategoryOption>();
@@ -182,14 +182,14 @@
@JsonProperty
@JsonView({ DetailedView.class, ExportView.class })
@JacksonXmlProperty(namespace = DxfNamespaces.DXF_2_0)
- public String getDimensionType()
+ public String getDataDimensionType()
{
- return dimensionType;
+ return dataDimensionType;
}
- public void setDimensionType( String dimensionType )
+ public void setDataDimensionType( String dataDimensionType )
{
- this.dimensionType = dimensionType;
+ this.dataDimensionType = dataDimensionType;
}
@JsonProperty
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/hibernate/HibernateCategoryStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/hibernate/HibernateCategoryStore.java 2014-03-18 08:10:10 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/hibernate/HibernateCategoryStore.java 2014-03-26 18:56:37 +0000
@@ -45,6 +45,6 @@
@SuppressWarnings("unchecked")
public Collection<DataElementCategory> getCategoriesByDimensionType( String dimensionType )
{
- return getCriteria( Restrictions.eq( "dimensionType", dimensionType ) ).list();
+ return getCriteria( Restrictions.eq( "dataDimensionType", dimensionType ) ).list();
}
}
=== 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 2014-02-14 12:15:54 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElementCategory.hbm.xml 2014-03-26 18:56:37 +0000
@@ -17,7 +17,7 @@
<property name="name" column="name" not-null="true" unique="true" length="230" />
- <property name="dimensionType" column="dimensiontype" />
+ <property name="dataDimensionType" column="dimensiontype" />
<!-- Access properties -->
<many-to-one name="user" class="org.hisp.dhis.user.User" column="userid" foreign-key="fk_dataelementcategory_userid" />
Follow ups