]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.hibernate/src/main/resources/org/argeo/slc/hibernate/test/tree/TreeTestResult.hbm.xml
Introduce test result attributes instead of root tags
[gpl/argeo-slc.git] / org.argeo.slc.hibernate / src / main / resources / org / argeo / slc / hibernate / test / tree / TreeTestResult.hbm.xml
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" />