1) removed foreign key relationship from/to this group of entities and the other entities of the OFBiz data model; the fields are still available but they are not enforced by a foreign key constraint
2) removed one view entitiy joining Visit with Party entities and refactored the code that was using it in order to provide the same behavior
3) added a new entity group ("org.ofbiz.stats") for the Visit/Visitor/ServerHit* (and related) entities; for now the group is not active so that the entities are still in the same database as before; however assigning them to a different database is now a matter of uncommenting the group file definition in framework/webapp/ofbiz-component.xml and provide the new datasource definition
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647271 13f79535-47bb-0310-9956-ffa450edef68
94 lines
4.2 KiB
XML
94 lines
4.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entitymodel.xsd">
|
|
<!-- ========================================================= -->
|
|
<!-- ======================== Defaults ======================= -->
|
|
<!-- ========================================================= -->
|
|
<title>Entity of an Open For Business Project Component</title>
|
|
<description>None</description>
|
|
<version>1.0</version>
|
|
<!-- ========================================================= -->
|
|
<!-- ======================== Data Model ===================== -->
|
|
<!-- The modules in this file are as follows: -->
|
|
<!-- - org.ofbiz.product.facility -->
|
|
<!-- ========================================================= -->
|
|
|
|
|
|
<!-- ========================================================= -->
|
|
<!-- org.ofbiz.product.facility -->
|
|
<!-- ========================================================= -->
|
|
|
|
<entity entity-name="OldFacilityRole" table-name="FACILITY_ROLE"
|
|
package-name="org.ofbiz.product.facility"
|
|
title="Facility Role Entity">
|
|
<field name="facilityId" type="id-ne"></field>
|
|
<field name="partyId" type="id-ne"></field>
|
|
<field name="roleTypeId" type="id-ne"></field>
|
|
<prim-key field="facilityId"/>
|
|
<prim-key field="partyId"/>
|
|
<prim-key field="roleTypeId"/>
|
|
<relation type="one" fk-name="FACILITY_RLE_FAC" rel-entity-name="Facility">
|
|
<key-map field-name="facilityId"/>
|
|
</relation>
|
|
<relation type="one" fk-name="FACILITY_RLE_PRTY" rel-entity-name="Party">
|
|
<key-map field-name="partyId"/>
|
|
</relation>
|
|
<relation type="one-nofk" fk-name="FACILITY_RLE_ROLE" rel-entity-name="RoleType">
|
|
<key-map field-name="roleTypeId"/>
|
|
</relation>
|
|
</entity>
|
|
<entity entity-name="OldProductKeyword" table-name="PRODUCT_KEYWORD"
|
|
package-name="org.ofbiz.product.facility"
|
|
title="Old Product Keyword Entity">
|
|
<field name="productId" type="id-ne"></field>
|
|
<field name="keyword" type="short-varchar"></field>
|
|
<field name="relevancyWeight" type="numeric"></field>
|
|
<prim-key field="productId"/>
|
|
<prim-key field="keyword"/>
|
|
<relation type="one" fk-name="PROD_KWD_PROD" rel-entity-name="Product">
|
|
<key-map field-name="productId"/>
|
|
</relation>
|
|
<index name="PROD_KWD_KWD">
|
|
<index-field name="keyword"/>
|
|
</index>
|
|
</entity>
|
|
<entity entity-name="OldProductKeywordResult" table-name="PRODUCT_KEYWORD_RESULT"
|
|
package-name="org.ofbiz.product.product"
|
|
never-cache="true"
|
|
title="Product Keyword Result Entity">
|
|
<field name="productKeywordResultId" type="id-ne"></field>
|
|
<field name="visitId" type="id"></field>
|
|
<field name="productCategoryId" type="id"></field>
|
|
<field name="searchString" type="short-varchar"></field>
|
|
<field name="intraKeywordOperator" type="very-short"></field>
|
|
<field name="anyPrefix" type="indicator"></field>
|
|
<field name="anySuffix" type="indicator"></field>
|
|
<field name="removeStems" type="indicator"></field>
|
|
<field name="numResults" type="numeric"></field>
|
|
<prim-key field="productKeywordResultId"/>
|
|
<relation type="one-nofk" rel-entity-name="ProductCategory">
|
|
<key-map field-name="productCategoryId"/>
|
|
</relation>
|
|
</entity>
|
|
|
|
</entitymodel>
|