svn commit: r631076 - /ofbiz/trunk/applications/content/entitydef/entitymodel.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r631076 - /ofbiz/trunk/applications/content/entitydef/entitymodel.xml

jonesde
Author: jonesde
Date: Mon Feb 25 19:24:26 2008
New Revision: 631076

URL: http://svn.apache.org/viewvc?rev=631076&view=rev
Log:
Added relationships between DataResource and Survey; uses a funny key so we warning messages, but that's how it's built right now

Modified:
    ofbiz/trunk/applications/content/entitydef/entitymodel.xml

Modified: ofbiz/trunk/applications/content/entitydef/entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/entitydef/entitymodel.xml?rev=631076&r1=631075&r2=631076&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/content/entitydef/entitymodel.xml Mon Feb 25 19:24:26 2008
@@ -763,7 +763,7 @@
       <field name="localeString" type="very-short"></field>
       <field name="mimeTypeId" type="id-long"></field>      
       <field name="characterSetId" type="id-long"></field>
-      <field name="objectInfo" type="long-varchar"></field>
+      <field name="objectInfo" type="long-varchar"><description>For Short Text the text goes here. For Survey or SurveyResponse the Id goes here.</description></field>
       <field name="relatedDetailId" type="id"><description>Depending on the dataResourceTypeId this can point to other entities, like: Survey, SurveyResponse, etc.</description></field>
       <field name="isPublic" type="indicator"><description>If this is set to Y then anyone can download it, otherwise the download is restricted.</description></field>
       <field name="createdDate" type="date-time"></field>
@@ -802,6 +802,12 @@
       <relation type="one" fk-name="DATA_REC_LMB_ULGN" title="LastModifiedBy" rel-entity-name="UserLogin">
         <key-map field-name="lastModifiedByUserLogin" rel-field-name="userLoginId"/>
       </relation>
+        <relation type="one-nofk" rel-entity-name="Survey">
+            <key-map field-name="objectInfo" rel-field-name="surveyId"/>
+        </relation>
+        <relation type="one-nofk" rel-entity-name="SurveyResponse">
+            <key-map field-name="objectInfo" rel-field-name="surveyResponseId"/>
+        </relation>
     </entity>
     <entity entity-name="DataResourceAttribute"
             package-name="org.ofbiz.content.data"