Introduce test result attributes instead of root tags
authorMathieu Baudier <mbaudier@argeo.org>
Sun, 29 Jun 2008 07:13:05 +0000 (07:13 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sun, 29 Jun 2008 07:13:05 +0000 (07:13 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@1321 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.slc.hibernate/src/main/resources/org/argeo/slc/hibernate/process/SlcExecution.hbm.xml
org.argeo.slc.hibernate/src/main/resources/org/argeo/slc/hibernate/test/tree/TreeTestResult.hbm.xml

index 0bd96fd23fbe1953e58000d3b567923245958e25..59781dca8f37243b283eb87a5a320856f5a4dda4 100644 (file)
@@ -20,7 +20,7 @@
                <map name="attributes" table="SLC_EXEC_ATTRS_MAP" cascade="all"
                        lazy="false" sort="natural">
                        <key column="PARENT_ID" />
-                       <map-key type="string" column="ATTR_NAME" />
+                       <map-key column="ATTR_NAME" type="string" />
                        <element column="NAME" type="string" />
                </map>
 
index efc6eb85a0afe796b78710a5fe2cad1190ca3bb4..eb4a38a77eaa62ce994e2121f69aa768e9e07663 100644 (file)
@@ -9,6 +9,13 @@
                <property name="closeDate" column="CLOSE_DATE" type="timestamp"
                        not-null="false" />
 
+               <map name="attributes" table="TTR_ATTRS_MAP" cascade="all"
+                       lazy="false" sort="natural">
+                       <key column="PARENT_ID" />
+                       <map-key column="ATTR_NAME" type="string" />
+                       <element column="NAME" type="string" />
+               </map>
+
                <map name="resultParts" table="RESULT_PARTS_MAP" cascade="all"
                        sort="natural">
                        <key column="PARENT_ID" />