Author: adityasharma
Date: Wed Dec 19 08:23:29 2018 New Revision: 1849275 URL: http://svn.apache.org/viewvc?rev=1849275&view=rev Log: Improved: Remove all the fk dependencies from stats entities to the business entities (OFBIZ-10721) stats related entities foreign key relation has been removed by Jacopo at r#1647271 and new group org.apache.ofbiz.stats introduced for stats related entity. Some remnants were still left in stats entities. Removed relations of Party, ContactMech and Content from ServerHit entity. Removed relations of Content from ServerHitBin entity. Removed relations of UserLogin from Visitor entity. Thanks Jacques Le Roux and Deepak Dixit for the review. Modified: ofbiz/ofbiz-framework/trunk/applications/datamodel/entitydef/party-entitymodel.xml ofbiz/ofbiz-framework/trunk/framework/webapp/entitydef/entitymodel.xml Modified: ofbiz/ofbiz-framework/trunk/applications/datamodel/entitydef/party-entitymodel.xml URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/datamodel/entitydef/party-entitymodel.xml?rev=1849275&r1=1849274&r2=1849275&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/datamodel/entitydef/party-entitymodel.xml (original) +++ ofbiz/ofbiz-framework/trunk/applications/datamodel/entitydef/party-entitymodel.xml Wed Dec 19 08:23:29 2018 @@ -2932,24 +2932,9 @@ under the License. <field name="partyId" type="id"></field> <field name="idByIpContactMechId" type="id"></field> <field name="refByWebContactMechId" type="id"></field> - <relation type="one" fk-name="SERVER_HIT_PARTY" rel-entity-name="Party"> - <key-map field-name="partyId"/> - </relation> - <relation type="one" fk-name="SERVER_HIT_IDBYIP" title="IdByIp" rel-entity-name="ContactMech"> - <key-map field-name="idByIpContactMechId" rel-field-name="contactMechId"/> - </relation> - <relation type="one" fk-name="SERVER_HIT_REFWEB" title="RefByWeb" rel-entity-name="ContactMech"> - <key-map field-name="refByWebContactMechId" rel-field-name="contactMechId"/> - </relation> - <relation type="one" fk-name="SERVER_HIT_CNT" rel-entity-name="Content"> - <key-map field-name="internalContentId" rel-field-name="contentId"/> - </relation> </extend-entity> <extend-entity entity-name="ServerHitBin"> <field name="internalContentId" type="id"></field> - <relation type="one" fk-name="SERVER_HBIN_CNT" rel-entity-name="Content"> - <key-map field-name="internalContentId" rel-field-name="contentId"/> - </relation> </extend-entity> <extend-entity entity-name="Visit"> <field name="contactMechId" type="id"></field> Modified: ofbiz/ofbiz-framework/trunk/framework/webapp/entitydef/entitymodel.xml URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/webapp/entitydef/entitymodel.xml?rev=1849275&r1=1849274&r2=1849275&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/framework/webapp/entitydef/entitymodel.xml (original) +++ ofbiz/ofbiz-framework/trunk/framework/webapp/entitydef/entitymodel.xml Wed Dec 19 08:23:29 2018 @@ -193,9 +193,6 @@ under the License. <field name="visitorId" type="id"></field> <field name="userLoginId" type="id-vlong"></field> <prim-key field="visitorId"/> - <relation type="one" fk-name="VISITOR_USRLGN" rel-entity-name="UserLogin"> - <key-map field-name="userLoginId"/> - </relation> </entity> <!-- ========================================================= --> |
Free forum by Nabble | Edit this page |