← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5906: Fix bug: Don't create optionsetmembers table when running on MySQL.

 

------------------------------------------------------------
revno: 5906
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-02-10 13:41:28 +0700
message:
  Fix bug: Don't create optionsetmembers table when running on MySQL.
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/option/hibernate/OptionSet.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/option/hibernate/OptionSet.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/option/hibernate/OptionSet.hbm.xml	2012-02-07 09:05:40 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/option/hibernate/OptionSet.hbm.xml	2012-02-10 06:41:28 +0000
@@ -16,11 +16,10 @@
     &identifiableProperties;
     
     <list name="options" table="optionsetmembers">
-      <cache usage="read-write" />
-      <key column="optionsetid" foreign-key="fk_optionsetmembers_optionsetid" />
-      <list-index column="sort_order" base="0" />
-      <element type="string" column="option" />
-    </list>
-
+		<key column="optionsetid" foreign-key="fk_optionsetmembers_optionsetid" />
+		<list-index column="sort_order" />
+		<element type="text" column="optionvalue"/>
+	</list>
+    
   </class>
 </hibernate-mapping>