svn commit: r699193 - /ofbiz/trunk/applications/product/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: r699193 - /ofbiz/trunk/applications/product/entitydef/entitymodel.xml

hansbak-2
Author: hansbak
Date: Thu Sep 25 23:40:35 2008
New Revision: 699193

URL: http://svn.apache.org/viewvc?rev=699193&view=rev
Log:
added view ProductFacilityAndPostalAddress, to be able to list products by geographic location

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

Modified: ofbiz/trunk/applications/product/entitydef/entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/entitydef/entitymodel.xml?rev=699193&r1=699192&r2=699193&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/product/entitydef/entitymodel.xml Thu Sep 25 23:40:35 2008
@@ -4422,4 +4422,27 @@
       <field name="description" type="description"></field>
       <prim-key field="supplierRatingTypeId"/>
     </entity>
+  
+  <view-entity entity-name="ProductFacilityAndPostalAddress"
+        package-name="org.ofbiz.product.product"
+        title="Product Facility And Contactmech And Postal Address View Entity, to be able to list products by geographic location">
+    <member-entity entity-alias="PDFT" entity-name="ProductFacility"/>
+    <member-entity entity-alias="FTCT" entity-name="FacilityContactMech"/>
+    <member-entity entity-alias="CT" entity-name="ContactMech"/>
+    <member-entity entity-alias="PTA" entity-name="PostalAddress"/>
+    <alias-all entity-alias="PDFT"/>
+    <alias-all entity-alias="FTCT"/>
+    <alias-all entity-alias="CT"/>
+    <alias-all entity-alias="PTA"/>
+    <view-link entity-alias="PDFT" rel-entity-alias="FTCT">
+      <key-map field-name="facilityId"/>
+    </view-link>
+    <view-link entity-alias="FTCT" rel-entity-alias="CT">
+      <key-map field-name="contactMechId"/>
+    </view-link>
+    <view-link entity-alias="CT" rel-entity-alias="PTA">
+      <key-map field-name="contactMechId"/>
+    </view-link>
+  </view-entity>
+  
 </entitymodel>