← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6002: Minor fix

 

------------------------------------------------------------
revno: 6002
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-02-17 00:15:31 +0100
message:
  Minor fix
modified:
  dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/DataSetBatchHandler.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-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/DataSetBatchHandler.java'
--- dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/DataSetBatchHandler.java	2011-12-26 10:07:59 +0000
+++ dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/DataSetBatchHandler.java	2012-02-16 23:15:31 +0000
@@ -92,12 +92,13 @@
     {
         statementBuilder.setColumn( "uid" );
         statementBuilder.setColumn( "name" );
-        statementBuilder.setColumn( "shortName" );
+        statementBuilder.setColumn( "shortname" );
         statementBuilder.setColumn( "code" );
         statementBuilder.setColumn( "periodtypeid" );
         statementBuilder.setColumn( "sortorder" );
         statementBuilder.setColumn( "mobile" );
-        statementBuilder.setColumn( "dataEntryForm" );
+        statementBuilder.setColumn( "dataentryform" );
+        statementBuilder.setColumn( "expirydays" );
     }
 
     protected void setValues( DataSet dataSet )
@@ -110,6 +111,6 @@
         statementBuilder.setValue( dataSet.getSortOrder() );
         statementBuilder.setValue( dataSet.isMobile() );
         statementBuilder.setValue( dataSet.getDataEntryForm() != null ? dataSet.getDataEntryForm().getId() : null );
-        
+        statementBuilder.setValue( dataSet.getExpiryDays() );       
     }
 }