← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4127: Increase length of shortname/code in hbm for legacy purposes

 

------------------------------------------------------------
revno: 4127
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2011-07-13 11:35:32 +0200
message:
  Increase length of shortname/code in hbm for legacy purposes
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElement.hbm.xml
  dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataset/hibernate/DataSet.hbm.xml
  dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/indicator/hibernate/Indicator.hbm.xml
  dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/organisationunit/hibernate/OrganisationUnit.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-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElement.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElement.hbm.xml	2011-05-28 21:25:46 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElement.hbm.xml	2011-07-13 09:35:32 +0000
@@ -25,11 +25,11 @@
     </property>
 
     <property name="shortName">
-      <column name="shortname" not-null="true" unique="true" length="30" />
+      <column name="shortname" not-null="true" unique="true" length="50" />
     </property>
 
     <property name="code">
-      <column name="code" not-null="false" unique="false" length="30" />
+      <column name="code" not-null="false" unique="false" length="50" />
     </property>
 
     <property name="description" type="text" />

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataset/hibernate/DataSet.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataset/hibernate/DataSet.hbm.xml	2011-05-28 21:25:46 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataset/hibernate/DataSet.hbm.xml	2011-07-13 09:35:32 +0000
@@ -18,9 +18,9 @@
 
     <property name="name" not-null="true" unique="true" length="230" />
 
-    <property name="shortName" unique="true" length="30" />
+    <property name="shortName" unique="true" length="50" />
 
-    <property name="code" unique="true" length="30" />
+    <property name="code" unique="true" length="50" />
 
     <many-to-one name="periodType" lazy="false" class="org.hisp.dhis.period.PeriodType" column="periodtypeid"
       not-null="true" foreign-key="fk_dataset_periodtypeid" />

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/indicator/hibernate/Indicator.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/indicator/hibernate/Indicator.hbm.xml	2011-05-28 21:25:46 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/indicator/hibernate/Indicator.hbm.xml	2011-07-13 09:35:32 +0000
@@ -25,11 +25,11 @@
     </property>
 
     <property name="shortName">
-      <column name="shortname" not-null="true" unique="true" length="30" />
+      <column name="shortname" not-null="true" unique="true" length="50" />
     </property>
 
     <property name="code">
-      <column name="code" not-null="false" unique="false" length="30" />
+      <column name="code" not-null="false" unique="false" length="50" />
     </property>
 
     <property name="description" type="text" />

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/organisationunit/hibernate/OrganisationUnit.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/organisationunit/hibernate/OrganisationUnit.hbm.xml	2011-05-28 21:25:46 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/organisationunit/hibernate/OrganisationUnit.hbm.xml	2011-07-13 09:35:32 +0000
@@ -30,11 +30,11 @@
       foreign-key="fk_parentid" index="in_parentid" />
 
     <property name="shortName">
-      <column name="shortname" not-null="true" unique="false" length="30" />
+      <column name="shortname" not-null="true" unique="false" length="50" />
     </property>
 
     <property name="code">
-      <column name="code" not-null="false" unique="false" length="30" />
+      <column name="code" not-null="false" unique="false" length="50" />
     </property>
 
     <property name="openingDate" column="openingdate" type="date" />