svn commit: r1025909 - /ofbiz/trunk/framework/common/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: r1025909 - /ofbiz/trunk/framework/common/entitydef/entitymodel.xml

jonesde
Author: jonesde
Date: Thu Oct 21 09:37:23 2010
New Revision: 1025909

URL: http://svn.apache.org/viewvc?rev=1025909&view=rev
Log:
Added a handy view-entity to complement the existing GeoAssocAndGeoTo

Modified:
    ofbiz/trunk/framework/common/entitydef/entitymodel.xml

Modified: ofbiz/trunk/framework/common/entitydef/entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/entitydef/entitymodel.xml?rev=1025909&r1=1025908&r2=1025909&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/framework/common/entitydef/entitymodel.xml Thu Oct 21 09:37:23 2010
@@ -195,6 +195,16 @@ under the License.
         <key-map field-name="geoAssocTypeId"/>
       </relation>
     </entity>
+    <view-entity entity-name="GeoAssocAndGeoFrom" package-name="org.ofbiz.common.geo">
+        <member-entity entity-alias="GA" entity-name="GeoAssoc"/>
+        <member-entity entity-alias="GFR" entity-name="Geo"/>
+        <alias-all entity-alias="GFR"/>
+        <alias entity-alias="GA" name="geoIdTo"/>
+        <alias entity-alias="GA" name="geoAssocTypeId"/>
+        <view-link entity-alias="GA" rel-entity-alias="GFR">
+            <key-map field-name="geoId"/>
+        </view-link>
+    </view-entity>
     <view-entity entity-name="GeoAssocAndGeoTo" package-name="org.ofbiz.common.geo">
         <member-entity entity-alias="GA" entity-name="GeoAssoc"/>
         <member-entity entity-alias="GTO" entity-name="Geo"/>