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

jleroux@apache.org
Author: jleroux
Date: Mon Jan  6 16:19:33 2014
New Revision: 1555886

URL: http://svn.apache.org/r1555886
Log:
Resolves but not yet closes "Because of the elevation field in GeoPoint we need a many relationship for (at least) PostalAddress and Facility" at https://issues.apache.org/jira/browse/OFBIZ-3198

Simply add a geo point in FacilityLocation for now. Keeps the Jira issue open but resolved as incomplete, we will see later...

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=1555886&r1=1555885&r2=1555886&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/product/entitydef/entitymodel.xml Mon Jan  6 16:19:33 2014
@@ -1232,6 +1232,7 @@ under the License.
         <field name="sectionId" type="id"></field>
         <field name="levelId" type="id"></field>
         <field name="positionId" type="id"></field>
+        <field name="geoPointId" type="id"></field>      
         <prim-key field="facilityId"/>
         <prim-key field="locationSeqId"/>
         <relation type="one" fk-name="FACILITY_LOC_FAC" rel-entity-name="Facility">
@@ -1240,6 +1241,9 @@ under the License.
         <relation type="one" fk-name="FACILITY_LOC_TENM" title="Type" rel-entity-name="Enumeration">
             <key-map field-name="locationTypeEnumId" rel-field-name="enumId"/>
         </relation>
+      <relation type="one" fk-name="FACILITY_LOC_GEOPT" rel-entity-name="GeoPoint">
+        <key-map field-name="geoPointId"/>
+      </relation>      
     </entity>
     <entity entity-name="FacilityLocationGeoPoint" package-name="org.ofbiz.product.facility" title="Facility Location Geo Location with history">
         <field name="facilityId" type="id-ne"></field>