blob: 3ec2389e2dd2bb28809760ed275c8c508c0f83f1 [file] [log] [blame]
<!--
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>
<default-resource-name>ProductEntityLabels</default-resource-name>
<!-- ========================================================= -->
<!-- ======================== Data Model ===================== -->
<!-- The modules in this file are as follows: -->
<!-- - org.ofbiz.product.catalog -->
<!-- - org.ofbiz.product.category -->
<!-- - org.ofbiz.product.config -->
<!-- - org.ofbiz.product.cost -->
<!-- - org.ofbiz.product.facility -->
<!-- - org.ofbiz.product.feature -->
<!-- - org.ofbiz.product.inventory -->
<!-- - org.ofbiz.product.price -->
<!-- - org.ofbiz.product.product -->
<!-- - org.ofbiz.product.promo -->
<!-- - org.ofbiz.product.store -->
<!-- - org.ofbiz.product.subscription -->
<!-- - org.ofbiz.product.supplier -->
<!-- ========================================================= -->
<!-- ========================================================= -->
<!-- org.ofbiz.product.catalog -->
<!-- ========================================================= -->
<entity entity-name="ProdCatalog"
package-name="org.ofbiz.product.catalog"
title="Catalog Entity" default-resource-name="ProductEntityLabels">
<field name="prodCatalogId" type="id-ne"></field>
<field name="catalogName" type="name"></field>
<field name="useQuickAdd" type="indicator"></field>
<field name="styleSheet" type="url"></field>
<field name="headerLogo" type="url"></field>
<field name="contentPathPrefix" type="long-varchar"></field>
<field name="templatePathPrefix" type="long-varchar"></field>
<field name="viewAllowPermReqd" type="indicator"></field>
<field name="purchaseAllowPermReqd" type="indicator"></field>
<prim-key field="prodCatalogId"/>
</entity>
<entity entity-name="ProdCatalogCategory"
package-name="org.ofbiz.product.catalog"
default-resource-name="ProductEntityLabels"
title="Catalog Category Association Entity">
<field name="prodCatalogId" type="id-ne"></field>
<field name="productCategoryId" type="id-ne"></field>
<field name="prodCatalogCategoryTypeId" type="id"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="sequenceNum" type="numeric"></field>
<prim-key field="prodCatalogId"/>
<prim-key field="productCategoryId"/>
<prim-key field="prodCatalogCategoryTypeId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_CC_CATALOG" rel-entity-name="ProdCatalog">
<key-map field-name="prodCatalogId"/>
</relation>
<relation type="one" fk-name="PROD_CC_CATEGORY" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="one" fk-name="PROD_CC_TYPE" rel-entity-name="ProdCatalogCategoryType">
<key-map field-name="prodCatalogCategoryTypeId"/>
</relation>
</entity>
<entity entity-name="ProdCatalogCategoryType"
package-name="org.ofbiz.product.catalog"
default-resource-name="ProductEntityLabels"
title="Catalog Category Association Type Entity">
<field name="prodCatalogCategoryTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id"></field>
<field name="description" type="description"></field>
<prim-key field="prodCatalogCategoryTypeId"/>
<relation type="one" fk-name="PROD_PCCT_TYPEPAR" title="Parent" rel-entity-name="ProdCatalogCategoryType">
<key-map field-name="parentTypeId" rel-field-name="prodCatalogCategoryTypeId"/>
</relation>
</entity>
<entity entity-name="ProdCatalogInvFacility"
package-name="org.ofbiz.product.catalog"
title="Product Catalog Inventory Facility Applicability Entity">
<field name="prodCatalogId" type="id-ne"></field>
<field name="facilityId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="sequenceNum" type="numeric"></field>
<prim-key field="prodCatalogId"/>
<prim-key field="facilityId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_CIF_CATALOG" rel-entity-name="ProdCatalog">
<key-map field-name="prodCatalogId"/>
</relation>
<relation type="one" fk-name="PROD_CIF_FACILITY" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
</entity>
<entity entity-name="ProdCatalogRole"
package-name="org.ofbiz.product.catalog"
title="ProdCatalog Role Association Entity">
<field name="partyId" type="id-ne"></field>
<field name="roleTypeId" type="id-ne"></field>
<field name="prodCatalogId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="sequenceNum" type="numeric"></field>
<prim-key field="partyId"/>
<prim-key field="roleTypeId"/>
<prim-key field="prodCatalogId"/>
<prim-key field="fromDate"/>
<relation type="one-nofk" rel-entity-name="Party">
<key-map field-name="partyId"/>
</relation>
<relation type="one-nofk" rel-entity-name="RoleType">
<key-map field-name="roleTypeId"/>
</relation>
<relation type="one-nofk" rel-entity-name="Person">
<key-map field-name="partyId"/>
</relation>
<relation type="one-nofk" rel-entity-name="PartyGroup">
<key-map field-name="partyId"/>
</relation>
<relation type="one" fk-name="PCATRLE_PTYRLE" rel-entity-name="PartyRole">
<key-map field-name="partyId"/>
<key-map field-name="roleTypeId"/>
</relation>
<relation type="one" fk-name="PCATRLE_CATALOG" rel-entity-name="ProdCatalog">
<key-map field-name="prodCatalogId"/>
</relation>
</entity>
<!-- ========================================================= -->
<!-- org.ofbiz.product.category -->
<!-- ========================================================= -->
<view-entity entity-name="ProductAndCategoryMember"
package-name="org.ofbiz.product.category"
title="Product And ProductCategoryMember View Entity">
<member-entity entity-alias="PROD" entity-name="Product"/>
<member-entity entity-alias="PCM" entity-name="ProductCategoryMember"/>
<alias-all entity-alias="PROD"/>
<alias-all entity-alias="PCM">
<exclude field="comments"/>
</alias-all>
<alias name="memberComments" entity-alias="PCM" field="comments"/>
<view-link entity-alias="PROD" rel-entity-alias="PCM">
<key-map field-name="productId"/>
</view-link>
<relation type="one-nofk" rel-entity-name="ProductCategoryMember">
<key-map field-name="productCategoryId"/>
<key-map field-name="productId"/>
<key-map field-name="fromDate"/>
</relation>
<relation type="one-nofk" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
</view-entity>
<entity entity-name="ProductCategory"
package-name="org.ofbiz.product.category"
title="Product Category Entity">
<field name="productCategoryId" type="id-ne"></field>
<field name="productCategoryTypeId" type="id"></field>
<field name="primaryParentCategoryId" type="id"></field>
<field name="categoryName" type="name"></field>
<field name="description" type="description"></field>
<field name="longDescription" type="very-long"></field>
<field name="categoryImageUrl" type="url"></field>
<field name="linkOneImageUrl" type="url"></field>
<field name="linkTwoImageUrl" type="url"></field>
<field name="detailScreen" type="long-varchar"></field>
<field name="showInSelect" type="indicator"></field>
<prim-key field="productCategoryId"/>
<relation type="one" fk-name="PROD_CTGRY_TYPE" rel-entity-name="ProductCategoryType">
<key-map field-name="productCategoryTypeId"/>
</relation>
<relation type="many" rel-entity-name="ProductCategoryTypeAttr">
<key-map field-name="productCategoryTypeId"/>
</relation>
<relation type="one" fk-name="PROD_CTGRY_PARENT" title="PrimaryParent" rel-entity-name="ProductCategory">
<key-map field-name="primaryParentCategoryId" rel-field-name="productCategoryId"/>
</relation>
<relation type="many" title="PrimaryChild" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId" rel-field-name="primaryParentCategoryId"/>
</relation>
</entity>
<view-entity entity-name="ProductCategoryAndMember"
package-name="org.ofbiz.product.category"
title="ProductCategory And ProductCategoryMember View Entity">
<member-entity entity-alias="PC" entity-name="ProductCategory"/>
<member-entity entity-alias="PCM" entity-name="ProductCategoryMember"/>
<alias-all entity-alias="PC"/>
<alias-all entity-alias="PCM"/>
<view-link entity-alias="PC" rel-entity-alias="PCM">
<key-map field-name="productCategoryId"/>
</view-link>
<relation type="one-nofk" rel-entity-name="ProductCategoryMember">
<key-map field-name="productCategoryId"/>
<key-map field-name="productId"/>
<key-map field-name="fromDate"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="one-nofk" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
</view-entity>
<entity entity-name="ProductCategoryAttribute"
package-name="org.ofbiz.product.category"
title="Product Category Attribute Entity">
<field name="productCategoryId" type="id-ne"></field>
<field name="attrName" type="id-long-ne"></field>
<field name="attrValue" type="value"></field>
<prim-key field="productCategoryId"/>
<prim-key field="attrName"/>
<relation type="one" fk-name="PROD_CTGRY_ATTR" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="many" rel-entity-name="ProductCategoryTypeAttr">
<key-map field-name="attrName"/>
</relation>
</entity>
<entity entity-name="ProductCategoryContent"
package-name="org.ofbiz.product.category"
title="Product Category Data Object Entity">
<field name="productCategoryId" type="id-ne"></field>
<field name="contentId" type="id-ne"></field>
<field name="prodCatContentTypeId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="purchaseFromDate" type="date-time"></field>
<field name="purchaseThruDate" type="date-time"></field>
<field name="useCountLimit" type="numeric"></field>
<field name="useDaysLimit" type="fixed-point"></field>
<prim-key field="productCategoryId"/>
<prim-key field="contentId"/>
<prim-key field="prodCatContentTypeId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PRDCAT_CNT_PRDCAT" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="one" fk-name="PRDCAT_CNT_CNT" rel-entity-name="Content">
<key-map field-name="contentId"/>
</relation>
<relation type="one" fk-name="PRDCAT_CNT_TYPE" rel-entity-name="ProductCategoryContentType">
<key-map field-name="prodCatContentTypeId"/>
</relation>
<index name="PRDCAT_CNT_CTTP">
<index-field name="productCategoryId"/>
<index-field name="prodCatContentTypeId"/>
</index>
</entity>
<view-entity entity-name="ProductCategoryContentAndInfo"
package-name="org.ofbiz.product.category"
title="ProductCategoryContent, Content and DataResource View Entity">
<member-entity entity-alias="PCC" entity-name="ProductCategoryContent"/>
<member-entity entity-alias="CO" entity-name="Content"/>
<member-entity entity-alias="DR" entity-name="DataResource"/>
<alias-all entity-alias="PCC"/>
<alias-all entity-alias="CO"/>
<alias-all entity-alias="DR" prefix="dr"/>
<view-link entity-alias="PCC" rel-entity-alias="CO">
<key-map field-name="contentId"/>
</view-link>
<view-link entity-alias="CO" rel-entity-alias="DR">
<key-map field-name="dataResourceId"/>
</view-link>
<relation type="one-nofk" rel-entity-name="ElectronicText">
<key-map field-name="dataResourceId"/>
</relation>
<relation type="one-nofk" rel-entity-name="ImageDataResource">
<key-map field-name="dataResourceId"/>
</relation>
<relation type="one-nofk" rel-entity-name="OtherDataResource">
<key-map field-name="dataResourceId"/>
</relation>
<relation type="many" rel-entity-name="ContentAssocDataResourceViewFrom">
<key-map field-name="contentId" rel-field-name="contentIdStart"/>
</relation>
<relation type="many" rel-entity-name="ContentAssocDataResourceViewTo">
<key-map field-name="contentId" rel-field-name="contentIdStart"/>
</relation>
</view-entity>
<entity entity-name="ProductCategoryContentType"
package-name="org.ofbiz.product.category"
default-resource-name="ProductEntityLabels"
title="Product Category Content Type Entity">
<field name="prodCatContentTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id"></field>
<field name="hasTable" type="indicator"></field>
<field name="description" type="description"></field>
<prim-key field="prodCatContentTypeId"/>
<relation type="one" fk-name="PRDCATCNT_TYP_PAR" title="Parent" rel-entity-name="ProductCategoryContentType">
<key-map field-name="parentTypeId" rel-field-name="prodCatContentTypeId"/>
</relation>
</entity>
<entity entity-name="ProductCategoryGlAccount" package-name="org.ofbiz.product.category" title="Product Category GlAccount Entity">
<field name="productCategoryId" type="id-ne"></field>
<field name="organizationPartyId" type="id-ne"></field>
<field name="glAccountTypeId" type="id-ne"></field>
<field name="glAccountId" type="id-ne"></field>
<prim-key field="productCategoryId"/>
<prim-key field="organizationPartyId"/>
<prim-key field="glAccountTypeId"/>
<relation type="one" fk-name="PRD_CT_GLACT_PCAT" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="one" fk-name="PRD_CT_GLACT_PRTY" rel-entity-name="Party">
<key-map field-name="organizationPartyId" rel-field-name="partyId"/>
</relation>
<relation type="one" fk-name="PRD_CT_GLACT_TYPE" rel-entity-name="GlAccountType">
<key-map field-name="glAccountTypeId"/>
</relation>
<relation type="one" fk-name="PRD_CT_GLACT_GLACT" rel-entity-name="GlAccount">
<key-map field-name="glAccountId"/>
</relation>
</entity>
<entity entity-name="ProductCategoryLink"
package-name="org.ofbiz.product.category"
title="Product Category Link Entity">
<field name="productCategoryId" type="id-ne"></field>
<field name="linkSeqId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="comments" type="comment"><description>Internal comments, not for public display.</description></field>
<field name="sequenceNum" type="numeric"><description>This field is used to sort the links. The linkSeqId field is not used because it is part of the primary key and cannot be changed.</description></field>
<field name="titleText" type="description"></field>
<field name="detailText" type="very-long"></field>
<field name="imageUrl" type="url"></field>
<field name="imageTwoUrl" type="url"></field>
<field name="linkTypeEnumId" type="id"></field>
<field name="linkInfo" type="long-varchar"></field>
<field name="detailSubScreen" type="long-varchar"><description>This is optional. If not specified a default should be used by the category detail template.</description></field>
<prim-key field="productCategoryId"/>
<prim-key field="linkSeqId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_CLNK_CATEGORY" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="one" fk-name="PROD_CLNK_LKTPENM" title="LinkType" rel-entity-name="Enumeration">
<key-map field-name="linkTypeEnumId" rel-field-name="enumId"/>
</relation>
</entity>
<entity entity-name="ProductCategoryMember"
package-name="org.ofbiz.product.category"
title="Product Category Member Entity">
<field name="productCategoryId" type="id-ne"></field>
<field name="productId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="comments" type="comment"></field>
<field name="sequenceNum" type="numeric"></field>
<field name="quantity" type="fixed-point"></field>
<prim-key field="productCategoryId"/>
<prim-key field="productId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_CMBR_PRODUCT" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
<relation type="one" fk-name="PROD_CMBR_CATEGORY" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<index name="PRD_CMBR_PCT">
<index-field name="productCategoryId"/>
</index>
</entity>
<view-entity entity-name="ProductCategoryMemberAndRole"
package-name="org.ofbiz.product.category"
title="ProductCategoryMember And ProductCategoryRole View Entity">
<member-entity entity-alias="PCM" entity-name="ProductCategoryMember"/>
<member-entity entity-alias="PCR" entity-name="ProductCategoryRole"/>
<alias entity-alias="PCM" name="productId"/>
<alias entity-alias="PCM" name="productCategoryId"/>
<alias entity-alias="PCM" name="fromDate"/>
<alias entity-alias="PCM" name="thruDate"/>
<alias entity-alias="PCM" name="comments"/>
<alias entity-alias="PCM" name="sequenceNum"/>
<alias entity-alias="PCM" name="quantity"/>
<alias entity-alias="PCR" name="partyId"/>
<alias entity-alias="PCR" name="roleTypeId"/>
<alias entity-alias="PCR" name="roleFromDate" field="fromDate"/>
<alias entity-alias="PCR" name="roleThruDate" field="thruDate"/>
<alias entity-alias="PCR" name="roleComments" field="comments"/>
<view-link entity-alias="PCM" rel-entity-alias="PCR">
<key-map field-name="productCategoryId"/>
</view-link>
<relation type="one-nofk" rel-entity-name="ProductCategoryMember">
<key-map field-name="productCategoryId"/>
<key-map field-name="productId"/>
<key-map field-name="fromDate"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductCategoryRole">
<key-map field-name="productCategoryId"/>
<key-map field-name="partyId"/>
<key-map field-name="roleTypeId"/>
<key-map field-name="roleFromDate" rel-field-name="fromDate"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="one-nofk" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
</view-entity>
<entity entity-name="ProductCategoryRole"
package-name="org.ofbiz.product.category"
title="Product Category Role Entity">
<field name="productCategoryId" type="id-ne"></field>
<field name="partyId" type="id-ne"></field>
<field name="roleTypeId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="comments" type="comment"></field>
<prim-key field="productCategoryId"/>
<prim-key field="partyId"/>
<prim-key field="roleTypeId"/>
<prim-key field="fromDate"/>
<relation type="one-nofk" rel-entity-name="Party">
<key-map field-name="partyId"/>
</relation>
<relation type="one-nofk" rel-entity-name="RoleType">
<key-map field-name="roleTypeId"/>
</relation>
<relation type="one" fk-name="PROD_CRLE_PTYRLE" rel-entity-name="PartyRole">
<key-map field-name="partyId"/>
<key-map field-name="roleTypeId"/>
</relation>
<relation type="one" fk-name="PROD_CRLE_CATEGORY" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
</entity>
<entity entity-name="ProductCategoryRollup"
package-name="org.ofbiz.product.category"
title="Product Category Rollup Entity">
<field name="productCategoryId" type="id-ne"></field>
<field name="parentProductCategoryId" type="id-ne"><description>The parent category; it should be one of productCategoryId already setup in ProductCategory or ProductCategoryRollup</description></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="sequenceNum" type="numeric"></field>
<prim-key field="productCategoryId"/>
<prim-key field="parentProductCategoryId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_CRLP_CURRENT" title="Current" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="one" fk-name="PROD_CRLP_PARENT" title="Parent" rel-entity-name="ProductCategory">
<key-map field-name="parentProductCategoryId" rel-field-name="productCategoryId"/>
</relation>
<relation type="many" title="Child" rel-entity-name="ProductCategoryRollup">
<key-map field-name="productCategoryId" rel-field-name="parentProductCategoryId"/>
</relation>
<relation type="many" title="Parent" rel-entity-name="ProductCategoryRollup">
<key-map field-name="parentProductCategoryId" rel-field-name="productCategoryId"/>
</relation>
<relation type="many" title="Sibling" rel-entity-name="ProductCategoryRollup">
<key-map field-name="parentProductCategoryId"/>
</relation>
<index name="PRDCR_PARPC">
<index-field name="parentProductCategoryId"/>
</index>
</entity>
<view-entity entity-name="ProductCategoryRollupAndChild" package-name="org.ofbiz.product.category">
<member-entity entity-alias="PCR" entity-name="ProductCategoryRollup"/>
<member-entity entity-alias="CPC" entity-name="ProductCategory"/>
<alias-all entity-alias="CPC"/>
<alias entity-alias="PCR" name="parentProductCategoryId"/>
<alias entity-alias="PCR" name="fromDate"/>
<alias entity-alias="PCR" name="thruDate"/>
<alias entity-alias="PCR" name="sequenceNum"/>
<view-link entity-alias="PCR" rel-entity-alias="CPC">
<key-map field-name="productCategoryId"/>
</view-link>
</view-entity>
<view-entity entity-name="ProductCategoryRollupAndRole"
package-name="org.ofbiz.product.category"
title="ProductCategoryRollup And ProductCategoryRole View Entity">
<description>Allow the lookup of a category that is in another category that a party/role is related to. So, the party/role is related to the parent category.</description>
<member-entity entity-alias="PCRLP" entity-name="ProductCategoryRollup"/>
<member-entity entity-alias="PCR" entity-name="ProductCategoryRole"/>
<alias entity-alias="PCRLP" name="productCategoryId"/>
<alias entity-alias="PCRLP" name="parentProductCategoryId"/>
<alias entity-alias="PCRLP" name="fromDate"/>
<alias entity-alias="PCRLP" name="thruDate"/>
<alias entity-alias="PCRLP" name="sequenceNum"/>
<alias entity-alias="PCR" name="partyId"/>
<alias entity-alias="PCR" name="roleTypeId"/>
<alias entity-alias="PCR" name="roleFromDate" field="fromDate"/>
<alias entity-alias="PCR" name="roleThruDate" field="thruDate"/>
<alias entity-alias="PCR" name="roleComments" field="comments"/>
<view-link entity-alias="PCRLP" rel-entity-alias="PCR">
<key-map field-name="parentProductCategoryId" rel-field-name="productCategoryId"/>
</view-link>
<relation type="one-nofk" rel-entity-name="ProductCategoryRollup">
<key-map field-name="productCategoryId"/>
<key-map field-name="parentProductCategoryId"/>
<key-map field-name="fromDate"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductCategoryRole">
<key-map field-name="parentProductCategoryId" rel-field-name="productCategoryId"/>
<key-map field-name="partyId"/>
<key-map field-name="roleTypeId"/>
<key-map field-name="roleFromDate" rel-field-name="fromDate"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="one-nofk" title="Parent" rel-entity-name="ProductCategory">
<key-map field-name="parentProductCategoryId" rel-field-name="productCategoryId"/>
</relation>
</view-entity>
<entity entity-name="ProductCategoryType"
package-name="org.ofbiz.product.category"
default-resource-name="ProductEntityLabels"
title="Product Category Type Entity">
<field name="productCategoryTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id"></field>
<field name="hasTable" type="indicator"></field>
<field name="description" type="description"></field>
<prim-key field="productCategoryTypeId"/>
<relation type="one" fk-name="PROD_CTGRY_TYPEPAR" title="Parent" rel-entity-name="ProductCategoryType">
<key-map field-name="parentTypeId" rel-field-name="productCategoryTypeId"/>
</relation>
</entity>
<entity entity-name="ProductCategoryTypeAttr"
package-name="org.ofbiz.product.category"
title="Product Category Type Attribute Entity">
<field name="productCategoryTypeId" type="id-ne"></field>
<field name="attrName" type="id-long-ne"></field>
<prim-key field="productCategoryTypeId"/>
<prim-key field="attrName"/>
<relation type="one" fk-name="PROD_CTGRY_TATTR" rel-entity-name="ProductCategoryType">
<key-map field-name="productCategoryTypeId"/>
</relation>
<relation type="many" rel-entity-name="ProductCategoryAttribute">
<key-map field-name="attrName"/>
</relation>
<relation type="many" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryTypeId"/>
</relation>
</entity>
<!-- ========================================================= -->
<!-- org.ofbiz.product.config -->
<!-- ========================================================= -->
<entity entity-name="ProductConfig"
package-name="org.ofbiz.product.config"
title="Product Configuration Templates Entity">
<field name="productId" type="id-ne"></field>
<field name="configItemId" type="id-ne"></field>
<field name="sequenceNum" type="numeric"></field>
<field name="fromDate" type="date-time"></field>
<field name="description" type="description"></field>
<field name="longDescription" type="very-long"></field>
<field name="configTypeId" type="id"></field>
<field name="defaultConfigOptionId" type="id"></field>
<field name="thruDate" type="date-time"></field>
<field name="isMandatory" type="indicator"></field>
<prim-key field="productId"/>
<prim-key field="configItemId"/>
<prim-key field="sequenceNum"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_CONF_PROD" title="Product" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
<relation type="one" fk-name="PROD_CONF_ITEM" title="ConfigItem" rel-entity-name="ProductConfigItem">
<key-map field-name="configItemId"/>
</relation>
</entity>
<view-entity entity-name="ProductConfigAndProduct"
package-name="org.ofbiz.product.config"
title="Product Config And Product View Entity, to be able to see which products use a certain configuration item">
<member-entity entity-alias="PDC" entity-name="ProductConfig"/>
<member-entity entity-alias="PD" entity-name="Product"/>
<alias-all entity-alias="PDC">
<exclude field="description"/>
<exclude field="longDescription"/>
</alias-all>
<alias-all entity-alias="PD"/>
<view-link entity-alias="PDC" rel-entity-alias="PD">
<key-map field-name="productId"/>
</view-link>
</view-entity>
<entity entity-name="ProductConfigItem"
package-name="org.ofbiz.product.config"
title="Product Configuration Question Entity">
<field name="configItemId" type="id-ne"></field>
<field name="configItemTypeId" type="id"></field>
<field name="configItemName" type="name"></field>
<field name="description" type="description"></field>
<field name="longDescription" type="very-long"></field>
<field name="imageUrl" type="url"></field>
<prim-key field="configItemId"/>
</entity>
<entity entity-name="ProdConfItemContent"
package-name="org.ofbiz.product.config"
title="Product Configuration Question Data Object Entity">
<field name="configItemId" type="id-ne"></field>
<field name="contentId" type="id-ne"></field>
<field name="confItemContentTypeId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<prim-key field="configItemId"/>
<prim-key field="contentId"/>
<prim-key field="confItemContentTypeId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="CIMT_CNT_PCIT" rel-entity-name="ProductConfigItem">
<key-map field-name="configItemId"/>
</relation>
<relation type="one" fk-name="CIMT_CNT_CNT" rel-entity-name="Content">
<key-map field-name="contentId"/>
</relation>
<relation type="one" fk-name="CIMT_CNT_TYPE" rel-entity-name="ProdConfItemContentType">
<key-map field-name="confItemContentTypeId"/>
</relation>
</entity>
<entity entity-name="ProdConfItemContentType"
package-name="org.ofbiz.product.config"
title="Product Content Type Entity"
default-resource-name="ProductEntityLabels">
<field name="confItemContentTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id"></field>
<field name="hasTable" type="indicator"></field>
<field name="description" type="description"></field>
<prim-key field="confItemContentTypeId"/>
<relation type="one" fk-name="PCICT_TYP_PARENT" title="Parent" rel-entity-name="ProdConfItemContentType">
<key-map field-name="parentTypeId" rel-field-name="confItemContentTypeId"/>
</relation>
</entity>
<entity entity-name="ProductConfigOption"
package-name="org.ofbiz.product.config"
title="Product Configuration Options Entity">
<field name="configItemId" type="id-ne"></field>
<field name="configOptionId" type="id-ne"></field>
<field name="configOptionName" type="name"></field>
<field name="description" type="description"></field>
<field name="sequenceNum" type="numeric"></field>
<prim-key field="configItemId"/>
<prim-key field="configOptionId"/>
<relation type="one" fk-name="PROD_OPTN_ITEM" title="ConfigItem" rel-entity-name="ProductConfigItem">
<key-map field-name="configItemId"/>
</relation>
</entity>
<entity entity-name="ProductConfigOptionIactn"
package-name="org.ofbiz.product.config"
title="Product Configuration Options Entity">
<field name="configItemId" type="id-ne"></field>
<field name="configOptionId" type="id-ne"></field>
<field name="configItemIdTo" type="id-ne"></field>
<field name="configOptionIdTo" type="id-ne"></field>
<field name="sequenceNum" type="numeric"></field>
<field name="configIactnTypeId" type="id"><description>INCOMPATIBLE, etc...</description></field>
<field name="description" type="description"></field>
<prim-key field="configItemId"/>
<prim-key field="configOptionId"/>
<prim-key field="configItemIdTo"/>
<prim-key field="configOptionIdTo"/>
<prim-key field="sequenceNum"/> <!-- OPTIONAL -->
<relation type="one" fk-name="PROD_OPTIA_ITEM" title="ConfigItem" rel-entity-name="ProductConfigItem">
<key-map field-name="configItemId"/>
</relation>
<relation type="one" fk-name="PROD_OPTIA_OPTN" title="ConfigOption" rel-entity-name="ProductConfigOption">
<key-map field-name="configItemId"/>
<key-map field-name="configOptionId"/>
</relation>
<relation type="one" fk-name="PROD_OPTIA_ITMT" title="ConfigItemTo" rel-entity-name="ProductConfigItem">
<key-map field-name="configItemIdTo" rel-field-name="configItemId"/>
</relation>
<relation type="one" fk-name="PROD_OPTIA_OPTT" title="ConfigOptionTo" rel-entity-name="ProductConfigOption">
<key-map field-name="configItemIdTo" rel-field-name="configItemId"/>
<key-map field-name="configOptionIdTo" rel-field-name="configOptionId"/>
</relation>
</entity>
<entity entity-name="ProductConfigProduct"
package-name="org.ofbiz.product.config"
title="Product Configuration Option to Products Entity">
<field name="configItemId" type="id-ne"></field>
<field name="configOptionId" type="id-ne"></field>
<field name="productId" type="id-ne"></field>
<field name="quantity" type="fixed-point"></field>
<field name="sequenceNum" type="numeric"></field>
<prim-key field="configItemId"/>
<prim-key field="configOptionId"/>
<prim-key field="productId"/>
<relation type="one" fk-name="PROD_CONFP_ITEM" title="ConfigItem" rel-entity-name="ProductConfigItem">
<key-map field-name="configItemId"/>
</relation>
<relation type="one" fk-name="PROD_CONFP_OPTN" title="ConfigOption" rel-entity-name="ProductConfigOption">
<key-map field-name="configItemId"/>
<key-map field-name="configOptionId"/>
</relation>
<relation type="one" fk-name="PROD_CONFP_PROD" title="Product" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
</entity>
<entity entity-name="ProductConfigConfig"
package-name="org.ofbiz.product.config"
title="Existing Product Configurations Entity">
<field name="configId" type="id-ne"></field>
<field name="configItemId" type="id-ne"></field>
<field name="sequenceNum" type="numeric"></field>
<field name="configOptionId" type="id-ne"></field>
<field name="description" type="description"></field>
<prim-key field="configId"/>
<prim-key field="configItemId"/>
<prim-key field="configOptionId"/>
<prim-key field="sequenceNum"/>
<relation type="one" fk-name="PROD_CONFC_ITEM" title="ConfigItem" rel-entity-name="ProductConfigItem">
<key-map field-name="configItemId"/>
</relation>
<relation type="one" fk-name="PROD_CONFC_OPTN" title="ConfigOption" rel-entity-name="ProductConfigOption">
<key-map field-name="configItemId"/>
<key-map field-name="configOptionId"/>
</relation>
</entity>
<entity entity-name="ProductConfigStats"
package-name="org.ofbiz.product.config"
title="Product Configurations Stats Entity">
<field name="configId" type="id-ne"></field>
<field name="productId" type="id-ne"></field>
<field name="numOfConfs" type="numeric"></field>
<field name="configTypeId" type="id"><description>HIDDEN, TEMPLATE, etc...</description></field>
<prim-key field="configId"/>
<prim-key field="productId"/>
<relation type="one" fk-name="PROD_CONFS_PROD" title="Product" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
</entity>
<entity entity-name="ConfigOptionProductOption"
package-name="org.ofbiz.product.config"
title="Config Option Product Options Entity">
<field name="configId" type="id-ne"></field>
<field name="configItemId" type="id-ne"></field>
<field name="sequenceNum" type="numeric"></field>
<field name="configOptionId" type="id-ne"></field>
<field name="productId" type="id-ne"></field>
<field name="productOptionId" type="id-ne"></field>
<field name="description" type="description"></field>
<prim-key field="configId"/>
<prim-key field="configItemId"/>
<prim-key field="configOptionId"/>
<prim-key field="sequenceNum"/>
<prim-key field="productId"/>
<relation type="one" fk-name="PROD_OPTN_CONF" title="Config" rel-entity-name="ProductConfigConfig">
<key-map field-name="configId"/>
<key-map field-name="configItemId"/>
<key-map field-name="configOptionId"/>
<key-map field-name="sequenceNum"/>
</relation>
<relation type="one" fk-name="PROD_OPTN_PROD" title="Product" rel-entity-name="ProductConfigProduct">
<key-map field-name="configItemId"/>
<key-map field-name="configOptionId"/>
<key-map field-name="productId"/>
</relation>
</entity>
<!-- ========================================================= -->
<!-- org.ofbiz.product.cost -->
<!-- ========================================================= -->
<entity entity-name="CostComponent"
package-name="org.ofbiz.product.cost"
default-resource-name="ProductEntityLabels"
title="Cost Component Entity">
<field name="costComponentId" type="id-ne"></field>
<field name="costComponentTypeId" type="id"></field>
<field name="productId" type="id"></field>
<field name="productFeatureId" type="id"></field>
<field name="partyId" type="id"></field>
<field name="geoId" type="id"></field>
<field name="workEffortId" type="id"></field>
<field name="fixedAssetId" type="id"></field>
<field name="costComponentCalcId" type="id"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="cost" type="fixed-point"><description>Higher precision in case it is a calculated number</description></field>
<field name="costUomId" type="id"></field>
<prim-key field="costComponentId"/>
<relation type="one" fk-name="COST_COMP_TYPE" rel-entity-name="CostComponentType">
<key-map field-name="costComponentTypeId"/>
</relation>
<relation type="many" rel-entity-name="CostComponentTypeAttr">
<key-map field-name="costComponentTypeId"/>
</relation>
<relation type="one" fk-name="COST_COMP_PRODUCT" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
<relation type="one" fk-name="COST_COMP_PRODFEAT" rel-entity-name="ProductFeature">
<key-map field-name="productFeatureId"/>
</relation>
<relation type="one" fk-name="COST_COMP_PARTY" rel-entity-name="Party">
<key-map field-name="partyId"/>
</relation>
<relation type="one" fk-name="COST_COMP_GEO" rel-entity-name="Geo">
<key-map field-name="geoId"/>
</relation>
<relation type="one" fk-name="COST_COMP_WEFF" rel-entity-name="WorkEffort">
<key-map field-name="workEffortId"/>
</relation>
<relation type="one" fk-name="COST_COMP_FXADSST" rel-entity-name="FixedAsset">
<key-map field-name="fixedAssetId"/>
</relation>
<relation type="one" fk-name="COST_COMP_CALC" rel-entity-name="CostComponentCalc">
<key-map field-name="costComponentCalcId"/>
</relation>
<relation type="one" fk-name="COST_COMP_CUOM" title="Currency" rel-entity-name="Uom">
<key-map field-name="costUomId" rel-field-name="uomId"/>
</relation>
</entity>
<entity entity-name="CostComponentAttribute"
package-name="org.ofbiz.product.cost"
title="Cost Component Attribute Entity">
<field name="costComponentId" type="id-ne"></field>
<field name="attrName" type="id-long-ne"></field>
<field name="attrValue" type="value"></field>
<prim-key field="costComponentId"/>
<prim-key field="attrName"/>
<relation type="one" fk-name="COST_COMP_ATTR" rel-entity-name="CostComponent">
<key-map field-name="costComponentId"/>
</relation>
<relation type="many" rel-entity-name="CostComponentTypeAttr">
<key-map field-name="attrName"/>
</relation>
</entity>
<entity entity-name="CostComponentType"
package-name="org.ofbiz.product.cost"
default-resource-name="ProductEntityLabels"
title="Cost Component Type Entity">
<field name="costComponentTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id-ne"></field>
<field name="hasTable" type="indicator"></field>
<field name="description" type="description"></field>
<prim-key field="costComponentTypeId"/>
<relation type="one" fk-name="COST_COMP_TYPE_PAR" title="Parent" rel-entity-name="CostComponentType">
<key-map field-name="parentTypeId" rel-field-name="costComponentTypeId"/>
</relation>
</entity>
<entity entity-name="CostComponentTypeAttr"
package-name="org.ofbiz.product.cost"
title="Cost Component Type Attribute Entity">
<field name="costComponentTypeId" type="id-ne"></field>
<field name="attrName" type="id-long-ne"></field>
<prim-key field="costComponentTypeId"/>
<prim-key field="attrName"/>
<relation type="one" fk-name="COST_COMP_TATTR" rel-entity-name="CostComponentType">
<key-map field-name="costComponentTypeId"/>
</relation>
<relation type="many" rel-entity-name="CostComponentAttribute">
<key-map field-name="attrName"/>
</relation>
<relation type="many" rel-entity-name="CostComponent">
<key-map field-name="costComponentTypeId"/>
</relation>
</entity>
<entity entity-name="CostComponentCalc"
package-name="org.ofbiz.product.cost"
title="Cost Component Calculation Entity">
<field name="costComponentCalcId" type="id-ne"></field>
<field name="description" type="description"></field>
<field name="costGlAccountTypeId" type="id"></field>
<field name="offsettingGlAccountTypeId" type="id"></field>
<field name="fixedCost" type="currency-amount"></field>
<field name="variableCost" type="currency-amount"></field>
<field name="perMilliSecond" type="numeric"></field>
<field name="currencyUomId" type="id"></field>
<field name="costCustomMethodId" type="id"></field>
<prim-key field="costComponentCalcId"/>
<relation type="one" fk-name="COST_COM_CGLAT" title="Cost" rel-entity-name="GlAccountType">
<key-map field-name="costGlAccountTypeId" rel-field-name="glAccountTypeId"/>
</relation>
<relation type="one" fk-name="COST_COM_OGLAT" title="Offsetting" rel-entity-name="GlAccountType">
<key-map field-name="offsettingGlAccountTypeId" rel-field-name="glAccountTypeId"/>
</relation>
<relation type="one" fk-name="COST_COM_CUOM" rel-entity-name="Uom">
<key-map field-name="currencyUomId" rel-field-name="uomId"/>
</relation>
<relation type="one" fk-name="COST_COM_CMET" rel-entity-name="CustomMethod">
<key-map field-name="costCustomMethodId" rel-field-name="customMethodId"/>
</relation>
</entity>
<entity entity-name="ProductCostComponentCalc"
package-name="org.ofbiz.product.cost"
title="Product Cost Calculation Entity">
<field name="productId" type="id-ne"></field>
<field name="costComponentTypeId" type="id-ne"></field>
<field name="costComponentCalcId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="sequenceNum" type="numeric"></field>
<field name="thruDate" type="date-time"></field>
<prim-key field="productId"/>
<prim-key field="costComponentTypeId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PR_COS_COMPCALC" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
<relation type="one" fk-name="PR_COS_CCT" rel-entity-name="CostComponentType">
<key-map field-name="costComponentTypeId"/>
</relation>
<relation type="one" fk-name="PR_COS_CCC" rel-entity-name="CostComponentCalc">
<key-map field-name="costComponentCalcId"/>
</relation>
</entity>
<!-- ========================================================= -->
<!-- org.ofbiz.product.facility -->
<!-- ========================================================= -->
<entity entity-name="Container" package-name="org.ofbiz.product.facility" title="Container Entity">
<field name="containerId" type="id-ne"></field>
<field name="containerTypeId" type="id"></field>
<field name="facilityId" type="id"></field>
<field name="description" type="description"></field>
<prim-key field="containerId"/>
<relation type="one" fk-name="CONTAINER_CTTYP" rel-entity-name="ContainerType">
<key-map field-name="containerTypeId"/>
</relation>
<relation type="one" fk-name="CONTAINER_FACILITY" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
</entity>
<entity entity-name="ContainerType" package-name="org.ofbiz.product.facility" title="Container Type Entity">
<field name="containerTypeId" type="id-ne"></field>
<field name="description" type="description"></field>
<prim-key field="containerTypeId"/>
</entity>
<entity entity-name="ContainerGeoPoint" package-name="org.ofbiz.product.facility" title="Container Geo Location with history">
<field name="containerId" type="id-ne"></field>
<field name="geoPointId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<prim-key field="containerId"/>
<prim-key field="geoPointId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="CONTNRGEOPT_CONTNR" rel-entity-name="Container">
<key-map field-name="containerId"/>
</relation>
<relation type="one" fk-name="CONTNRGEOPT_GEOPT" rel-entity-name="GeoPoint">
<key-map field-name="geoPointId"/>
</relation>
</entity>
<view-entity entity-name="ContainerAndGeoPoint" package-name="org.ofbiz.product.facility" title="Container and Geo Point View Entity">
<member-entity entity-alias="CT" entity-name="Container"/>
<member-entity entity-alias="CTGPT" entity-name="ContainerGeoPoint"/>
<member-entity entity-alias="GPT" entity-name="GeoPoint"/>
<alias-all entity-alias="GPT"/>
<alias entity-alias="CT" name="containerId"/>
<alias entity-alias="CTGPT" name="fromDate"/>
<alias entity-alias="CTGPT" name="thruDate"/>
<view-link entity-alias="CT" rel-entity-alias="CTGPT">
<key-map field-name="containerId"/>
</view-link>
<view-link entity-alias="CTGPT" rel-entity-alias="GPT">
<key-map field-name="geoPointId"/>
</view-link>
<relation type="many" rel-entity-name="ContainerGeoPoint">
<key-map field-name="containerId"/>
<key-map field-name="geoPointId"/>
</relation>
<relation type="one-nofk" rel-entity-name="Container">
<key-map field-name="containerId"/>
</relation>
<relation type="one-nofk" rel-entity-name="GeoPoint">
<key-map field-name="geoPointId"/>
</relation>
</view-entity>
<entity entity-name="Facility" package-name="org.ofbiz.product.facility" title="Facility Entity">
<field name="facilityId" type="id-ne"></field>
<field name="facilityTypeId" type="id"></field>
<field name="parentFacilityId" type="id"></field>
<field name="ownerPartyId" type="id-ne"/>
<field name="defaultInventoryItemTypeId" type="id"></field>
<field name="facilityName" type="name"></field>
<field name="primaryFacilityGroupId" type="id"></field>
<field name="oldSquareFootage" type="numeric" col-name="SQUARE_FOOTAGE"></field>
<field name="facilitySize" type="fixed-point"></field>
<field name="facilitySizeUomId" type="id"></field>
<field name="productStoreId" type="id"></field>
<field name="defaultDaysToShip" type="numeric"><description>In the absence of a product specific days to ship in ProductFacility, this will be used</description></field>
<field name="openedDate" type="date-time"></field>
<field name="closedDate" type="date-time"></field>
<field name="description" type="description"></field>
<field name="defaultDimensionUomId" type="id"><description>This field store the unit of measurement of dimension (length, width and height)</description></field>
<field name="defaultWeightUomId" type="id"></field>
<field name="geoPointId" type="id"></field>
<prim-key field="facilityId"/>
<relation type="one" fk-name="FACILITY_FCTYP" rel-entity-name="FacilityType">
<key-map field-name="facilityTypeId"/>
</relation>
<relation type="one" fk-name="FACILITY_PARENT" title="Parent" rel-entity-name="Facility">
<key-map field-name="parentFacilityId" rel-field-name="facilityId"/>
</relation>
<relation type="one" fk-name="FACILITY_PGRP" rel-entity-name="FacilityGroup">
<key-map field-name="primaryFacilityGroupId" rel-field-name="facilityGroupId"/>
</relation>
<relation type="one" fk-name="FACILITY_OWNER" title="Owner" rel-entity-name="Party">
<key-map field-name="ownerPartyId" rel-field-name="partyId"/>
</relation>
<relation type="one" fk-name="FAC_INVITM_TYPE" title="Default" rel-entity-name="InventoryItemType">
<key-map field-name="defaultInventoryItemTypeId" rel-field-name="inventoryItemTypeId"/>
</relation>
<relation type="one" fk-name="FAC_DEF_DUOM" title="Dimension" rel-entity-name="Uom">
<key-map field-name="defaultDimensionUomId" rel-field-name="uomId"/>
</relation>
<relation type="one" fk-name="FAC_DEF_WUOM" title="Weight" rel-entity-name="Uom">
<key-map field-name="defaultWeightUomId" rel-field-name="uomId"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductStore">
<description>this was changed from the FK to better handle syncronization; this may be set back to be a FK in the future</description>
<key-map field-name="productStoreId"/>
</relation>
<relation type="many" rel-entity-name="FacilityTypeAttr">
<key-map field-name="facilityTypeId"/>
</relation>
<relation type="one" fk-name="FACILITY_GEOPT" rel-entity-name="GeoPoint">
<key-map field-name="geoPointId"/>
</relation>
<relation type="one" fk-name="FACILITY_SUOM" title="FacilitySize" rel-entity-name="Uom">
<key-map field-name="facilitySizeUomId" rel-field-name="uomId"/>
</relation>
</entity>
<view-entity entity-name="FacilityAndContactMech" package-name="org.ofbiz.product.facility" title="Facility and Contact Mech View Entity">
<member-entity entity-alias="FA" entity-name="Facility"/>
<member-entity entity-alias="CM" entity-name="FacilityContactMech"/>
<member-entity entity-alias="MC" entity-name="ContactMech"/>
<alias-all entity-alias="FA"/>
<alias-all entity-alias="CM"/>
<alias-all entity-alias="MC"/>
<view-link entity-alias="FA" rel-entity-alias="CM">
<key-map field-name="facilityId"/>
</view-link>
<view-link entity-alias="CM" rel-entity-alias="MC">
<key-map field-name="contactMechId"/>
</view-link>
</view-entity>
<entity entity-name="FacilityAttribute" package-name="org.ofbiz.product.facility" title="Facility Attribute Entity">
<field name="facilityId" type="id-ne"></field>
<field name="attrName" type="id-long-ne"></field>
<field name="attrValue" type="value"></field>
<prim-key field="facilityId"/>
<prim-key field="attrName"/>
<relation type="one" fk-name="FACILITY_ATTR" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
<relation type="many" rel-entity-name="FacilityTypeAttr">
<key-map field-name="attrName"/>
</relation>
</entity>
<entity entity-name="FacilityCarrierShipment" package-name="org.ofbiz.product.facility" title="Facility Role Type Entity">
<field name="facilityId" type="id-ne"></field>
<field name="partyId" type="id-ne"></field>
<field name="roleTypeId" type="id-ne"></field>
<field name="shipmentMethodTypeId" type="id-ne"></field>
<prim-key field="facilityId"/>
<prim-key field="partyId"/>
<prim-key field="roleTypeId"/>
<prim-key field="shipmentMethodTypeId"/>
<relation type="one" fk-name="FACILITY_CSH_PTY" rel-entity-name="Party">
<key-map field-name="partyId"/>
</relation>
<relation type="one" fk-name="FACILITY_CSH_FAC" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
<relation type="one" fk-name="FACILITY_CSH_STP" rel-entity-name="ShipmentMethodType">
<key-map field-name="shipmentMethodTypeId"/>
</relation>
<relation type="one" fk-name="FACILITY_CSH_CSM" rel-entity-name="CarrierShipmentMethod">
<key-map field-name="shipmentMethodTypeId"/>
<key-map field-name="partyId"/>
<key-map field-name="roleTypeId"/>
</relation>
</entity>
<entity entity-name="FacilityContactMech" package-name="org.ofbiz.product.facility" title="Facility Contact Mechanism Entity">
<field name="facilityId" type="id-ne"></field>
<field name="contactMechId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="extension" type="very-short"></field>
<field name="comments" type="comment"></field>
<prim-key field="facilityId"/>
<prim-key field="contactMechId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="FACIL_CMECH_FACIL" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
<relation type="one" fk-name="FACIL_CMECH_CMECH" rel-entity-name="ContactMech">
<key-map field-name="contactMechId"/>
</relation>
<relation type="one-nofk" rel-entity-name="TelecomNumber">
<key-map field-name="contactMechId"/>
</relation>
<relation type="many" rel-entity-name="FacilityContactMechPurpose">
<key-map field-name="facilityId"/>
<key-map field-name="contactMechId"/>
</relation>
</entity>
<entity entity-name="FacilityContactMechPurpose" package-name="org.ofbiz.product.facility" title="Facility Contact Mechanism Purpose Entity">
<field name="facilityId" type="id-ne"></field>
<field name="contactMechId" type="id-ne"></field>
<field name="contactMechPurposeTypeId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<prim-key field="facilityId"/>
<prim-key field="contactMechId"/>
<prim-key field="contactMechPurposeTypeId"/>
<prim-key field="fromDate"/>
<relation type="many" rel-entity-name="FacilityContactMech">
<key-map field-name="facilityId"/>
<key-map field-name="contactMechId"/>
</relation>
<relation type="one" fk-name="FACIL_CMPRP_TYPE" rel-entity-name="ContactMechPurposeType">
<key-map field-name="contactMechPurposeTypeId"/>
</relation>
<relation type="one" fk-name="FACIL_CMPRP_FACIL" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
<relation type="one" fk-name="FACIL_CMPRP_CMECH" rel-entity-name="ContactMech">
<key-map field-name="contactMechId"/>
</relation>
</entity>
<entity entity-name="FacilityGroup" package-name="org.ofbiz.product.facility" title="Facility Group Entity">
<field name="facilityGroupId" type="id-ne"></field>
<field name="facilityGroupTypeId" type="id"></field>
<field name="primaryParentGroupId" type="id"></field>
<field name="facilityGroupName" type="name"></field>
<field name="description" type="description"></field>
<prim-key field="facilityGroupId"/>
<relation type="one" fk-name="FACILITY_GP_TYPE" rel-entity-name="FacilityGroupType">
<key-map field-name="facilityGroupTypeId"/>
</relation>
<relation type="one" fk-name="FACILITY_GP_PGRP" title="PrimaryParent" rel-entity-name="FacilityGroup">
<key-map field-name="primaryParentGroupId" rel-field-name="facilityGroupId"/>
</relation>
</entity>
<entity entity-name="FacilityGroupMember" package-name="org.ofbiz.product.facility" title="Facility Group Entity">
<field name="facilityId" type="id-ne"></field>
<field name="facilityGroupId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="sequenceNum" type="numeric"></field>
<prim-key field="facilityId"/>
<prim-key field="facilityGroupId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="FACILITY_MEM_FAC" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
<relation type="one" fk-name="FACILITY_MEM_FGRP" rel-entity-name="FacilityGroup">
<key-map field-name="facilityGroupId"/>
</relation>
</entity>
<entity entity-name="FacilityGroupRole" package-name="org.ofbiz.product.facility" title="Facility Group Role Entity">
<field name="facilityGroupId" type="id-ne"></field>
<field name="partyId" type="id"></field>
<field name="roleTypeId" type="id"></field>
<prim-key field="facilityGroupId"/>
<prim-key field="partyId"/>
<prim-key field="roleTypeId"/>
<relation type="one" fk-name="FGROUP_RLE_FGRP" rel-entity-name="FacilityGroup">
<key-map field-name="facilityGroupId"/>
</relation>
<relation type="one" fk-name="FGROUP_RLE_PTRLE" rel-entity-name="PartyRole">
<key-map field-name="partyId"/>
<key-map field-name="roleTypeId"/>
</relation>
<relation type="one-nofk" rel-entity-name="Party">
<key-map field-name="partyId"/>
</relation>
<relation type="one-nofk" rel-entity-name="RoleType">
<key-map field-name="roleTypeId"/>
</relation>
</entity>
<entity entity-name="FacilityGroupRollup" package-name="org.ofbiz.product.facility" title="Facility Group Rollup Entity">
<field name="facilityGroupId" type="id-ne"></field>
<field name="parentFacilityGroupId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="sequenceNum" type="numeric"></field>
<prim-key field="facilityGroupId"/>
<prim-key field="parentFacilityGroupId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="FGRP_FRLP_CURRENT" title="Current" rel-entity-name="FacilityGroup">
<key-map field-name="facilityGroupId"/>
</relation>
<relation type="one" fk-name="FGRP_FRLP_PARENT" title="Parent" rel-entity-name="FacilityGroup">
<key-map field-name="parentFacilityGroupId" rel-field-name="facilityGroupId"/>
</relation>
<relation type="many" title="Child" rel-entity-name="FacilityGroupRollup">
<key-map field-name="facilityGroupId" rel-field-name="parentFacilityGroupId"/>
</relation>
<relation type="many" title="Parent" rel-entity-name="FacilityGroupRollup">
<key-map field-name="parentFacilityGroupId" rel-field-name="facilityGroupId"/>
</relation>
<relation type="many" title="Sibling" rel-entity-name="FacilityGroupRollup">
<key-map field-name="parentFacilityGroupId"/>
</relation>
</entity>
<entity entity-name="FacilityGroupType" package-name="org.ofbiz.product.facility" title="Facility Group Type Entity"
default-resource-name="ProductEntityLabels">
<field name="facilityGroupTypeId" type="id-ne"></field>
<field name="description" type="description"></field>
<prim-key field="facilityGroupTypeId"/>
</entity>
<entity entity-name="FacilityLocation" package-name="org.ofbiz.product.facility" title="Facility Location Entity">
<field name="facilityId" type="id-ne"></field>
<field name="locationSeqId" type="id-ne"></field>
<field name="locationTypeEnumId" type="id-ne"></field>
<field name="areaId" type="id"></field>
<field name="aisleId" type="id"></field>
<field name="sectionId" type="id"></field>
<field name="levelId" type="id"></field>
<field name="positionId" type="id"></field>
<prim-key field="facilityId"/>
<prim-key field="locationSeqId"/>
<relation type="one" fk-name="FACILITY_LOC_FAC" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
<relation type="one" fk-name="FACILITY_LOC_TENM" title="Type" rel-entity-name="Enumeration">
<key-map field-name="locationTypeEnumId" rel-field-name="enumId"/>
</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>
<field name="locationSeqId" type="id-ne"></field>
<field name="geoPointId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<prim-key field="facilityId"/>
<prim-key field="locationSeqId"/>
<prim-key field="geoPointId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="FACLOCGEOPT_FACLOC" rel-entity-name="FacilityLocation">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
<relation type="one" fk-name="FACLOCGEOPT_GEOPT" rel-entity-name="GeoPoint">
<key-map field-name="geoPointId"/>
</relation>
</entity>
<view-entity entity-name="FacilityLocationAndGeoPoint" package-name="org.ofbiz.product.facility" title="Facility Location and Geo Point View Entity">
<member-entity entity-alias="FL" entity-name="FacilityLocation"/>
<member-entity entity-alias="FLGPT" entity-name="FacilityLocationGeoPoint"/>
<member-entity entity-alias="GPT" entity-name="GeoPoint"/>
<alias-all entity-alias="GPT"/>
<alias entity-alias="FL" name="facilityId"/>
<alias entity-alias="FL" name="locationSeqId"/>
<alias entity-alias="FLGPT" name="fromDate"/>
<alias entity-alias="FLGPT" name="thruDate"/>
<view-link entity-alias="FL" rel-entity-alias="FLGPT">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</view-link>
<view-link entity-alias="FLGPT" rel-entity-alias="GPT">
<key-map field-name="geoPointId"/>
</view-link>
<relation type="many" rel-entity-name="FacilityLocationGeoPoint">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
<key-map field-name="geoPointId"/>
</relation>
<relation type="one-nofk" rel-entity-name="FacilityLocation">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
<relation type="one-nofk" rel-entity-name="GeoPoint">
<key-map field-name="geoPointId"/>
</relation>
</view-entity>
<entity entity-name="FacilityParty" package-name="org.ofbiz.product.facility" title="Facility Party Entity">
<field name="facilityId" type="id"></field>
<field name="partyId" type="id"></field>
<field name="roleTypeId" type="id"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<prim-key field="facilityId"/>
<prim-key field="partyId"/>
<prim-key field="roleTypeId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="FACILITY_RLE_FACI" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
<relation type="one" fk-name="FACILITY_RLE_PRT" rel-entity-name="Party">
<key-map field-name="partyId"/>
</relation>
<relation type="one" fk-name="FACILITY_RLE_ROL" rel-entity-name="RoleType">
<key-map field-name="roleTypeId"/>
</relation>
<relation type="one" fk-name="FACILITY_PRTY_ROLE" rel-entity-name="PartyRole">
<key-map field-name="partyId"/>
<key-map field-name="roleTypeId"/>
</relation>
</entity>
<entity entity-name="FacilityContent" package-name="org.ofbiz.product.facility" title="Facility Content Entity">
<field name="facilityId" type="id-ne"></field>
<field name="contentId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<prim-key field="facilityId"/>
<prim-key field="contentId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="FAC_CNT_FAC" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
<relation type="one" fk-name="FAC_CNT_CNT" rel-entity-name="Content">
<key-map field-name="contentId"/>
</relation>
</entity>
<view-entity entity-name="FacilityContentDetail" package-name="org.ofbiz.product.facility" title="Facility Content Detail View Entity">
<member-entity entity-alias="FCT" entity-name="FacilityContent"/>
<member-entity entity-alias="CNT" entity-name="Content"/>
<alias-all entity-alias="FCT"/>
<alias-all entity-alias="CNT"/>
<view-link entity-alias="FCT" rel-entity-alias="CNT">
<key-map field-name="contentId"/>
</view-link>
<relation type="one-nofk" rel-entity-name="DataResource">
<key-map field-name="dataResourceId"/>
</relation>
<relation type="one-nofk" rel-entity-name="ContentType">
<key-map field-name="contentTypeId"/>
</relation>
</view-entity>
<entity entity-name="FacilityType" package-name="org.ofbiz.product.facility" default-resource-name="ProductEntityLabels"
title="Facility Type Entity">
<field name="facilityTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id-ne"></field>
<field name="hasTable" type="indicator"></field>
<field name="description" type="description"></field>
<prim-key field="facilityTypeId"/>
<relation type="one" fk-name="FACILITY_TYPEPAR" title="Parent" rel-entity-name="FacilityType">
<key-map field-name="parentTypeId" rel-field-name="facilityTypeId"/>
</relation>
</entity>
<entity entity-name="FacilityTypeAttr" package-name="org.ofbiz.product.facility" title="Facility Type Attribute Entity">
<field name="facilityTypeId" type="id-ne"></field>
<field name="attrName" type="id-long-ne"></field>
<prim-key field="facilityTypeId"/>
<prim-key field="attrName"/>
<relation type="one" fk-name="FACILITY_TPAT_FT" rel-entity-name="FacilityType">
<key-map field-name="facilityTypeId"/>
</relation>
<relation type="many" rel-entity-name="FacilityAttribute">
<key-map field-name="attrName"/>
</relation>
<relation type="many" rel-entity-name="Facility">
<key-map field-name="facilityTypeId"/>
</relation>
</entity>
<entity entity-name="ProductFacility" package-name="org.ofbiz.product.facility" title="Product Facility Entity">
<field name="productId" type="id-ne"></field>
<field name="facilityId" type="id-ne"></field>
<field name="minimumStock" type="fixed-point"></field>
<field name="reorderQuantity" type="fixed-point"></field>
<field name="daysToShip" type="numeric"></field>
<field name="lastInventoryCount" type="fixed-point"><description>This field represents availableToPromiseTotal of a product at a certain point of time and is being updated regularly by a schedule service every hour</description></field>
<prim-key field="productId"/>
<prim-key field="facilityId"/>
<relation type="one" fk-name="PROD_FAC_PROD" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
<relation type="one" fk-name="PROD_FAC_FAC" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
</entity>
<view-entity entity-name="ProductFacilityAndPostalAddress"
package-name="org.ofbiz.product.facility"
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>
<entity entity-name="ProductFacilityLocation" package-name="org.ofbiz.product.facility" title="Product Facility Entity">
<field name="productId" type="id-ne"></field>
<field name="facilityId" type="id-ne"></field>
<field name="locationSeqId" type="id-ne"></field>
<field name="minimumStock" type="fixed-point"></field>
<field name="moveQuantity" type="fixed-point"></field>
<prim-key field="productId"/>
<prim-key field="facilityId"/>
<prim-key field="locationSeqId"/>
<relation type="one" fk-name="PROD_FCL_PROD" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
<relation type="one-nofk" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
<relation type="one" fk-name="PROD_FCL_FCL" rel-entity-name="FacilityLocation">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
</entity>
<view-entity entity-name="ProductFacilityLocationQuantityTest" package-name="org.ofbiz.product.facility" title="ProductFacilityLocation Quantity Test View Entity">
<member-entity entity-alias="PFL" entity-name="ProductFacilityLocation"/>
<member-entity entity-alias="FL" entity-name="FacilityLocation"/>
<member-entity entity-alias="II" entity-name="InventoryItem"/>
<alias entity-alias="PFL" name="productId" group-by="true"/>
<alias entity-alias="PFL" name="facilityId" group-by="true"/>
<alias entity-alias="PFL" name="locationSeqId" group-by="true"/>
<alias entity-alias="PFL" name="minimumStock" group-by="true"/>
<alias entity-alias="PFL" name="moveQuantity" group-by="true"/>
<alias entity-alias="FL" name="locationTypeEnumId" group-by="true"/>
<alias entity-alias="II" name="availableToPromiseTotal" function="sum"/>
<alias entity-alias="II" name="quantityOnHandTotal" function="sum"/>
<view-link entity-alias="PFL" rel-entity-alias="FL">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</view-link>
<view-link entity-alias="PFL" rel-entity-alias="II">
<key-map field-name="productId"/>
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</view-link>
<relation type="one-nofk" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
<relation type="one-nofk" rel-entity-name="FacilityLocation">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductFacilityLocation">
<key-map field-name="productId"/>
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
</view-entity>
<view-entity entity-name="ProductFacilityLocationView" package-name="org.ofbiz.product.facility" title="ProductFacilityLocation And FacilityLocation View Entity">
<member-entity entity-alias="PFL" entity-name="ProductFacilityLocation"/>
<member-entity entity-alias="FL" entity-name="FacilityLocation"/>
<alias-all entity-alias="PFL"/>
<alias-all entity-alias="FL"/>
<view-link entity-alias="PFL" rel-entity-alias="FL">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</view-link>
<relation type="one-nofk" rel-entity-name="FacilityLocation">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductFacilityLocation">
<key-map field-name="productId"/>
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
<relation type="many" rel-entity-name="InventoryItem">
<key-map field-name="productId"/>
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
</view-entity>
<!-- ========================================================= -->
<!-- org.ofbiz.product.feature -->
<!-- ========================================================= -->
<entity entity-name="ProductFeature"
package-name="org.ofbiz.product.feature"
default-resource-name="ProductEntityLabels"
title="Product Feature Entity">
<field name="productFeatureId" type="id-ne"></field>
<field name="productFeatureTypeId" type="id-ne"></field>
<field name="productFeatureCategoryId" type="id"></field>
<field name="description" type="description"></field>
<field name="uomId" type="id"></field>
<field name="numberSpecified" type="fixed-point"></field>
<field name="defaultAmount" type="currency-amount"></field>
<field name="defaultSequenceNum" type="numeric"></field>
<field name="abbrev" type="id"></field>
<field name="idCode" type="id-long"></field>
<prim-key field="productFeatureId"/>
<relation type="one" fk-name="PROD_FEAT_CATEGORY" rel-entity-name="ProductFeatureCategory">
<key-map field-name="productFeatureCategoryId"/>
</relation>
<relation type="one" fk-name="PROD_FEAT_TYPE" rel-entity-name="ProductFeatureType">
<key-map field-name="productFeatureTypeId"/>
</relation>
<relation type="one" fk-name="PROD_FEAT_UOM" rel-entity-name="Uom">
<key-map field-name="uomId"/>
</relation>
</entity>
<view-entity entity-name="ProductFeatureAndAppl"
package-name="org.ofbiz.product.feature"
title="ProductFeature And ProductFeatureAppl View Entity">
<member-entity entity-alias="PF" entity-name="ProductFeature"/>
<member-entity entity-alias="PFA" entity-name="ProductFeatureAppl"/>
<alias entity-alias="PF" name="productFeatureId"/>
<alias entity-alias="PF" name="productFeatureTypeId"/>
<alias entity-alias="PF" name="productFeatureCategoryId"/>
<alias entity-alias="PF" name="description"/>
<alias entity-alias="PF" name="uomId"/>
<alias entity-alias="PF" name="numberSpecified"/>
<alias entity-alias="PF" name="defaultAmount"/>
<alias entity-alias="PF" name="defaultSequenceNum"/>
<alias entity-alias="PF" name="abbrev"/>
<alias entity-alias="PF" name="idCode"/>
<alias entity-alias="PFA" name="productId"/>
<alias entity-alias="PFA" name="productFeatureApplTypeId"/>
<alias entity-alias="PFA" name="fromDate"/>
<alias entity-alias="PFA" name="thruDate"/>
<alias entity-alias="PFA" name="sequenceNum"/>
<alias entity-alias="PFA" name="amount"/>
<alias entity-alias="PFA" name="recurringAmount"/>
<view-link entity-alias="PF" rel-entity-alias="PFA">
<key-map field-name="productFeatureId"/>
</view-link>
<relation type="one-nofk" rel-entity-name="ProductFeature">
<key-map field-name="productFeatureId"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductFeatureAppl">
<key-map field-name="productId"/>
<key-map field-name="productFeatureId"/>
<key-map field-name="fromDate"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductFeatureType">
<key-map field-name="productFeatureTypeId"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductFeatureApplType">
<key-map field-name="productFeatureApplTypeId"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductFeatureCategory">
<key-map field-name="productFeatureCategoryId"/>
</relation>
<relation type="many" rel-entity-name="SupplierProductFeature">
<key-map field-name="productFeatureId"/>
</relation>
</view-entity>
<entity entity-name="ProductFeatureAppl"
package-name="org.ofbiz.product.feature"
title="Product Feature Applicability Entity">
<field name="productId" type="id-ne"></field>
<field name="productFeatureId" type="id-ne"></field>
<field name="productFeatureApplTypeId" type="id"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="sequenceNum" type="numeric"></field>
<field name="amount" type="currency-amount"></field>
<field name="recurringAmount" type="currency-amount"></field>
<prim-key field="productId"/>
<prim-key field="productFeatureId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_FAPPL_TYPE" rel-entity-name="ProductFeatureApplType">
<key-map field-name="productFeatureApplTypeId"/>
</relation>
<relation type="one" fk-name="PROD_FAPPL_PRODUCT" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
<relation type="one" fk-name="PROD_FAPPL_FEATURE" rel-entity-name="ProductFeature">
<key-map field-name="productFeatureId"/>
</relation>
</entity>
<entity entity-name="ProductFeatureApplType"
package-name="org.ofbiz.product.feature"
default-resource-name="ProductEntityLabels"
title="Product Feature Applicability Type Entity">
<field name="productFeatureApplTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id"></field>
<field name="hasTable" type="indicator"></field>
<field name="description" type="description"></field>
<prim-key field="productFeatureApplTypeId"/>
<relation type="one" fk-name="PROD_FAPPL_TYPPAR" title="Parent" rel-entity-name="ProductFeatureApplType">
<key-map field-name="parentTypeId" rel-field-name="productFeatureApplTypeId"/>
</relation>
</entity>
<entity entity-name="ProductFeatureApplAttr"
package-name="org.ofbiz.product.feature"
title="Product Feature Applicability Attribute Entity">
<field name="productId" type="id-ne"></field>
<field name="productFeatureId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="attrName" type="id-long-ne"></field>
<field name="attrValue" type="value"></field>
<prim-key field="productId"/>
<prim-key field="productFeatureId"/>
<prim-key field="fromDate"/>
<prim-key field="attrName"/>
<relation type="one" fk-name="PROD_FAPPA_PRODUCT" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
<relation type="one" fk-name="PROD_FAPPA_FEATURE" rel-entity-name="ProductFeature">
<key-map field-name="productFeatureId"/>
</relation>
<relation type="one" fk-name="PROD_FAPPA_FEATAPP" rel-entity-name="ProductFeatureAppl">
<key-map field-name="productId"/>
<key-map field-name="productFeatureId"/>
<key-map field-name="fromDate"/>
</relation>
</entity>
<entity entity-name="ProductFeatureCategory"
package-name="org.ofbiz.product.feature"
default-resource-name="ProductEntityLabels"
title="Product Feature Category Entity">
<field name="productFeatureCategoryId" type="id-ne"></field>
<field name="parentCategoryId" type="id"></field>
<field name="description" type="description"></field>
<prim-key field="productFeatureCategoryId"/>
<relation type="one" fk-name="PROD_FEAT_CAT_PAR" title="Parent" rel-entity-name="ProductFeatureCategory">
<key-map field-name="parentCategoryId" rel-field-name="productFeatureCategoryId"/>
</relation>
</entity>
<entity entity-name="ProductFeatureCategoryAppl"
package-name="org.ofbiz.product.feature"
title="Product Feature Category Application Entity">
<field name="productCategoryId" type="id-ne"></field>
<field name="productFeatureCategoryId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<prim-key field="productCategoryId"/>
<prim-key field="productFeatureCategoryId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_FCAPPL_CAT" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="one" fk-name="PROD_FCAPPL_FCAT" rel-entity-name="ProductFeatureCategory">
<key-map field-name="productFeatureCategoryId"/>
</relation>
</entity>
<entity entity-name="ProductFeatureCatGrpAppl"
package-name="org.ofbiz.product.feature"
title="Product Category Feature Group Application Entity">
<field name="productCategoryId" type="id-ne"></field>
<field name="productFeatureGroupId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<prim-key field="productCategoryId"/>
<prim-key field="productFeatureGroupId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_FCGAPL_CAT" rel-entity-name="ProductCategory">
<key-map field-name="productCategoryId"/>
</relation>
<relation type="one" fk-name="PROD_FCGAPL_FGRP" rel-entity-name="ProductFeatureGroup">
<key-map field-name="productFeatureGroupId"/>
</relation>
</entity>
<entity entity-name="ProductFeatureDataResource"
package-name="org.ofbiz.product.feature"
title="Product Feature Data Resource Entity">
<field name="dataResourceId" type="id-ne"></field>
<field name="productFeatureId" type="id-ne"></field>
<prim-key field="dataResourceId"/>
<prim-key field="productFeatureId"/>
<relation type="one" fk-name="PFEAT_DR_DATRES" rel-entity-name="DataResource">
<key-map field-name="dataResourceId"/>
</relation>
<relation type="one" fk-name="PFEAT_DR_FEATURE" rel-entity-name="ProductFeature">
<key-map field-name="productFeatureId"/>
</relation>
</entity>
<entity entity-name="ProductFeatureGroup"
package-name="org.ofbiz.product.feature"
title="Product Feature Group Entity">
<field name="productFeatureGroupId" type="id-ne"></field>
<field name="description" type="description"></field>
<prim-key field="productFeatureGroupId"/>
</entity>
<view-entity entity-name="ProductFeatureGroupAndAppl"
package-name="org.ofbiz.product.feature"
title="Product Feature Group And Applicability View Entity">
<member-entity entity-alias="PFGA" entity-name="ProductFeatureGroupAppl"/>
<member-entity entity-alias="PF" entity-name="ProductFeature"/>
<alias-all entity-alias="PFGA"/>
<alias-all entity-alias="PF"/>
<view-link entity-alias="PFGA" rel-entity-alias="PF">
<key-map field-name="productFeatureId"/>
</view-link>
</view-entity>
<view-entity entity-name="ProdFeaGrpAppAndProdFeaApp"
package-name="org.ofbiz.product.feature"
title="ProductFeatureGroupAppl And ProductFeatureAppl View Entity">
<member-entity entity-alias="PFGA" entity-name="ProductFeatureGroupAppl"/>
<member-entity entity-alias="PFA" entity-name="ProductFeatureAppl"/>
<alias entity-alias="PFGA" name="productFeatureGroupId"/>
<alias entity-alias="PFGA" name="productFeatureId"/>
<alias entity-alias="PFA" name="groupFromDate" field="fromDate"/>
<alias entity-alias="PFA" name="groupThruDate" field="thruDate"/>
<alias entity-alias="PFA" name="productId"/>
<alias entity-alias="PFA" name="productFeatureApplTypeId"/>
<alias entity-alias="PFA" name="fromDate"/>
<alias entity-alias="PFA" name="thruDate"/>
<alias entity-alias="PFA" name="sequenceNum"/>
<alias entity-alias="PFA" name="amount"/>
<alias entity-alias="PFA" name="recurringAmount"/>
<view-link entity-alias="PFGA" rel-entity-alias="PFA">
<key-map field-name="productFeatureId"/>
</view-link>
</view-entity>
<entity entity-name="ProductFeatureGroupAppl"
package-name="org.ofbiz.product.feature"
title="Product Feature Group Applicability Entity">
<field name="productFeatureGroupId" type="id-ne"></field>
<field name="productFeatureId" type="id-ne"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="sequenceNum" type="numeric"></field>
<prim-key field="productFeatureGroupId"/>
<prim-key field="productFeatureId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_FGAPP_PRODUCT" rel-entity-name="ProductFeatureGroup">
<key-map field-name="productFeatureGroupId"/>
</relation>
<relation type="one" fk-name="PROD_FGAPP_FEATURE" rel-entity-name="ProductFeature">
<key-map field-name="productFeatureId"/>
</relation>
</entity>
<entity entity-name="ProductFeatureIactn"
package-name="org.ofbiz.product.feature"
title="Product Feature Interaction Entity">
<field name="productFeatureId" type="id-ne"></field>
<field name="productFeatureIdTo" type="id-ne"></field>
<field name="productFeatureIactnTypeId" type="id"></field>
<field name="productId" type="id"></field>
<prim-key field="productFeatureId"/>
<prim-key field="productFeatureIdTo"/>
<relation type="one" fk-name="PROD_FICTN_TYPE" rel-entity-name="ProductFeatureIactnType">
<key-map field-name="productFeatureIactnTypeId"/>
</relation>
<relation type="one" fk-name="PROD_FICTN_MFEAT" title="Main" rel-entity-name="ProductFeature">
<key-map field-name="productFeatureId"/>
</relation>
<relation type="one" fk-name="PROD_FICTN_AFEAT" title="Assoc" rel-entity-name="ProductFeature">
<key-map field-name="productFeatureIdTo" rel-field-name="productFeatureId"/>
</relation>
</entity>
<entity entity-name="ProductFeatureIactnType"
package-name="org.ofbiz.product.feature"
title="Product Feature Interaction Type Entity">
<field name="productFeatureIactnTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id"></field>
<field name="hasTable" type="indicator"></field>
<field name="description" type="description"></field>
<prim-key field="productFeatureIactnTypeId"/>
<relation type="one" fk-name="PROD_FICTN_TYPPAR" title="Parent" rel-entity-name="ProductFeatureIactnType">
<key-map field-name="parentTypeId" rel-field-name="productFeatureIactnTypeId"/>
</relation>
</entity>
<entity entity-name="ProductFeatureType"
package-name="org.ofbiz.product.feature"
default-resource-name="ProductEntityLabels"
title="Product Feature Type Entity">
<field name="productFeatureTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id"></field>
<field name="hasTable" type="indicator"></field>
<field name="description" type="description"></field>
<prim-key field="productFeatureTypeId"/>
<relation type="one" fk-name="PROD_FEAT_TYPPAR" title="Parent" rel-entity-name="ProductFeatureType">
<key-map field-name="parentTypeId" rel-field-name="productFeatureTypeId"/>
</relation>
</entity>
<entity entity-name="ProductFeaturePrice"
package-name="org.ofbiz.product.price"
title="Product Feature Price Entity">
<field name="productFeatureId" type="id-ne"></field>
<field name="productPriceTypeId" type="id-ne"></field>
<field name="currencyUomId" type="id"></field>
<field name="fromDate" type="date-time"></field>
<field name="thruDate" type="date-time"></field>
<field name="price" type="currency-precise"></field>
<field name="createdDate" type="date-time"></field>
<field name="createdByUserLogin" type="id-vlong"></field>
<field name="lastModifiedDate" type="date-time"></field>
<field name="lastModifiedByUserLogin" type="id-vlong"></field>
<prim-key field="productFeatureId"/>
<prim-key field="productPriceTypeId"/>
<prim-key field="currencyUomId"/>
<prim-key field="fromDate"/>
<relation type="one" fk-name="PROD_F_PRICE_TYPE" rel-entity-name="ProductPriceType">
<key-map field-name="productPriceTypeId"/>
</relation>
<relation type="one" fk-name="PROD_F_PRICE_CUOM" title="Currency" rel-entity-name="Uom">
<key-map field-name="currencyUomId" rel-field-name="uomId"/>
</relation>
<relation type="one" fk-name="PROD_F_PRICE_CBUL" title="CreatedBy" rel-entity-name="UserLogin">
<key-map field-name="createdByUserLogin" rel-field-name="userLoginId"/>
</relation>
<relation type="one" fk-name="PROD_F_PRICE_LMBUL" title="LastModifiedBy" rel-entity-name="UserLogin">
<key-map field-name="lastModifiedByUserLogin" rel-field-name="userLoginId"/>
</relation>
<index name="PRD_FT_PRC_GENLKP">
<index-field name="productFeatureId"/>
<index-field name="currencyUomId"/>
</index>
</entity>
<!-- ========================================================= -->
<!-- org.ofbiz.product.inventory -->
<!-- ========================================================= -->
<view-entity entity-name="BalanceInventoryItemsView"
package-name="org.ofbiz.product.inventory"
title="Balance Inventory Items View Entity">
<member-entity entity-alias="INV" entity-name="InventoryItem"/>
<member-entity entity-alias="RES" entity-name="OrderItemShipGrpInvRes"/>
<alias entity-alias="INV" name="inventoryItemId"/>
<alias entity-alias="INV" name="productId"/>
<alias entity-alias="INV" name="facilityId"/>
<alias entity-alias="INV" name="inventoryItemTypeId"/>
<alias entity-alias="INV" name="availableToPromiseTotal"/>
<alias entity-alias="INV" name="quantityOnHandTotal"/>
<alias entity-alias="RES" name="orderId"/>
<alias entity-alias="RES" name="shipGroupSeqId"/>
<alias entity-alias="RES" name="orderItemSeqId"/>
<alias entity-alias="RES" name="quantity"/>
<alias entity-alias="RES" name="quantityNotAvailable"/>
<alias entity-alias="RES" name="reserveOrderEnumId"/>
<alias entity-alias="RES" name="reservedDatetime"/>
<alias entity-alias="RES" name="sequenceId"/>
<view-link entity-alias="INV" rel-entity-alias="RES">
<key-map field-name="inventoryItemId"/>
</view-link>
</view-entity>
<entity entity-name="InventoryItem"
package-name="org.ofbiz.product.inventory"
title="Inventory Item Entity">
<field name="inventoryItemId" type="id-ne"></field>
<field name="inventoryItemTypeId" type="id"></field>
<field name="productId" type="id"></field>
<field name="partyId" type="id"></field>
<field name="ownerPartyId" type="id"><description>The owner of the inventory item.</description></field>
<field name="statusId" type="id"></field>
<field name="datetimeReceived" type="date-time"></field>
<field name="datetimeManufactured" type="date-time"></field>
<field name="expireDate" type="date-time"></field>
<field name="facilityId" type="id"></field>
<field name="containerId" type="id"></field>
<field name="lotId" type="id"></field>
<field name="uomId" type="id"></field>
<field name="binNumber" type="id"></field>
<field name="locationSeqId" type="id"></field>
<field name="comments" type="comment"></field>
<field name="quantityOnHandTotal" type="fixed-point"></field>
<field name="availableToPromiseTotal" type="fixed-point"></field>
<field name="accountingQuantityTotal" type="fixed-point"></field>
<field name="oldQuantityOnHand" col-name="QUANTITY_ON_HAND" type="fixed-point"></field>
<field name="oldAvailableToPromise" col-name="AVAILABLE_TO_PROMISE" type="fixed-point"></field>
<field name="serialNumber" type="value"></field>
<field name="softIdentifier" type="value"></field>
<field name="activationNumber" type="value"></field>
<field name="activationValidThru" type="date-time"></field>
<field name="unitCost" type="fixed-point"><description>Higher precision in case it is a calculated number</description></field>
<field name="currencyUomId" type="id"><description>The currency Uom of the unit cost.</description></field>
<prim-key field="inventoryItemId"/>
<relation type="one" fk-name="INV_ITEM_TYPE" rel-entity-name="InventoryItemType">
<key-map field-name="inventoryItemTypeId"/>
</relation>
<relation type="many" rel-entity-name="InventoryItemTypeAttr">
<key-map field-name="inventoryItemTypeId"/>
</relation>
<relation type="one" fk-name="INV_ITEM_PRODUCT" rel-entity-name="Product">
<key-map field-name="productId"/>
</relation>
<relation type="one" fk-name="INV_ITEM_PARTY" rel-entity-name="Party">
<key-map field-name="partyId"/>
</relation>
<relation type="one" fk-name="INV_ITEM_OWNPARTY" title="Owner" rel-entity-name="Party">
<key-map field-name="ownerPartyId" rel-field-name="partyId"/>
</relation>
<relation type="one" fk-name="INV_ITEM_STTSITM" rel-entity-name="StatusItem">
<key-map field-name="statusId"/>
</relation>
<relation type="one" fk-name="INV_ITEM_FACILITY" rel-entity-name="Facility">
<key-map field-name="facilityId"/>
</relation>
<relation type="one" fk-name="INV_ITEM_CONTAINER" rel-entity-name="Container">
<key-map field-name="containerId"/>
</relation>
<relation type="one" fk-name="INV_ITEM_LOT" rel-entity-name="Lot">
<key-map field-name="lotId"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductFacility">
<key-map field-name="productId"/>
<key-map field-name="facilityId"/>
</relation>
<relation type="one-nofk" rel-entity-name="FacilityLocation">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
<relation type="one-nofk" rel-entity-name="ProductFacilityLocation">
<key-map field-name="productId"/>
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
<relation type="one" fk-name="INV_ITEM_UOM" rel-entity-name="Uom">
<key-map field-name="uomId"/>
</relation>
<relation type="one" fk-name="INV_ITEM_CUOM" title="Currency" rel-entity-name="Uom">
<key-map field-name="currencyUomId" rel-field-name="uomId"/>
</relation>
<index name="INVITEM_SOFID" unique="true">
<index-field name="softIdentifier"/>
</index>
<index name="INVITEM_ACTNM" unique="true">
<index-field name="activationNumber"/>
</index>
<index name="INV_ITEM_SN">
<index-field name="serialNumber"/>
</index>
</entity>
<view-entity entity-name="InventoryItemAndLocation"
package-name="org.ofbiz.product.inventory"
title="InventoryItem And FacilityLocation View Entity">
<member-entity entity-alias="II" entity-name="InventoryItem"/>
<member-entity entity-alias="PR" entity-name="Product"/>
<member-entity entity-alias="FL" entity-name="FacilityLocation"/>
<alias-all entity-alias="II">
<exclude field="comments"/>
</alias-all>
<alias-all entity-alias="PR">
<exclude field="facilityId"/>
</alias-all>
<alias-all entity-alias="FL"/>
<view-link entity-alias="II" rel-entity-alias="FL" rel-optional="true">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</view-link>
<view-link entity-alias="II" rel-entity-alias="PR" rel-optional="true">
<key-map field-name="productId"/>
</view-link>
<relation type="one-nofk" rel-entity-name="ProductFacilityLocation">
<key-map field-name="productId"/>
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
<relation type="one-nofk" rel-entity-name="FacilityLocation">
<key-map field-name="facilityId"/>
<key-map field-name="locationSeqId"/>
</relation>
<relation type="one-nofk" rel-entity-name="InventoryItem">
<key-map field-name="inventoryItemId"/>
</relation>
</view-entity>
<entity entity-name="InventoryItemAttribute"
package-name="org.ofbiz.product.inventory"
title="Inventory Item Attribute Entity">
<field name="inventoryItemId" type="id-ne"></field>
<field name="attrName" type="id-long-ne"></field>
<field name="attrValue" type="value"></field>
<prim-key field="inventoryItemId"/>
<prim-key field="attrName"/>
<relation type="one" fk-name="INV_ITEM_ATTR" rel-entity-name="InventoryItem">
<key-map field-name="inventoryItemId"/>
</relation>
<relation type="many" rel-entity-name="InventoryItemTypeAttr">
<key-map field-name="attrName"/>
</relation>
</entity>
<view-entity entity-name="InventoryItemAndDetail" package-name="org.ofbiz.product.inventory">
<member-entity entity-alias="II" entity-name="InventoryItem"/>
<member-entity entity-alias="IID" entity-name="InventoryItemDetail"/>
<alias-all entity-alias="IID"/>
<alias entity-alias="II" name="inventoryItemId"/>
<alias entity-alias="II" name="inventoryItemTypeId"/>
<alias entity-alias="II" name="productId"/>
<alias entity-alias="II" name="partyId"/>
<alias entity-alias="II" name="ownerPartyId"/>
<alias entity-alias="II" name="statusId"/>
<alias entity-alias="II" name="datetimeReceived"/>
<alias entity-alias="II" name="datetimeManufactured"/>
<alias entity-alias="II" name="expireDate"/>
<alias entity-alias="II" name="facilityId"/>
<alias entity-alias="II" name="containerId"/>
<alias entity-alias="II" name="lotId"/>
<alias entity-alias="II" name="uomId"/>
<alias entity-alias="II" name="binNumber"/>
<alias entity-alias="II" name="locationSeqId"/>
<alias entity-alias="II" name="comments"/>
<alias entity-alias="II" name="quantityOnHandTotal"/>
<alias entity-alias="II" name="availableToPromiseTotal"/>
<alias entity-alias="II" name="accountingQuantityTotal"/>
<alias entity-alias="II" name="oldQuantityOnHand"/>
<alias entity-alias="II" name="oldAvailableToPromise"/>
<alias entity-alias="II" name="serialNumber"/>
<alias entity-alias="II" name="softIdentifier"/>
<alias entity-alias="II" name="activationNumber"/>
<alias entity-alias="II" name="activationValidThru"/>
<alias entity-alias="II" name="currencyUomId"/>
<alias entity-alias="II" name="inventoryItemFixedAssetId" field="fixedAssetId"/>
<view-link entity-alias="II" rel-entity-alias="IID">
<key-map field-name="inventoryItemId"/>
</view-link>
</view-entity>
<entity entity-name="InventoryItemDetail"
package-name="org.ofbiz.product.inventory"
title="Inventory Item Detail Entity">
<field name="inventoryItemId" type="id-ne"></field>
<field name="inventoryItemDetailSeqId" type="id-ne"></field>
<field name="effectiveDate" type="date-time"></field>
<field name="quantityOnHandDiff" type="fixed-point"></field>
<field name="availableToPromiseDiff" type="fixed-point"></field>
<field name="accountingQuantityDiff" type="fixed-point"></field>
<field name="unitCost" type="fixed-point"></field>
<field name="orderId" type="id"></field>
<field name="orderItemSeqId" type="id"></field>
<field name="shipGroupSeqId" type="id"></field>
<field name="shipmentId" type="id"></field>
<field name="shipmentItemSeqId" type="id"></field>
<field name="returnId" type="id"></field>
<field name="returnItemSeqId" type="id"></field>
<field name="workEffortId" type="id"></field>
<field name="fixedAssetId" type="id"></field>
<field name="maintHistSeqId" type="id"></field>
<field name="itemIssuanceId" type="id"></field>
<field name="receiptId" type="id"></field>
<field name="physicalInventoryId" type="id"></field>
<field name="reasonEnumId" type="id"></field>
<field name="description" type="description"></field>
<prim-key field="inventoryItemId"/>
<prim-key field="inventoryItemDetailSeqId"/>
<relation type="one" fk-name="INV_ITDTL_INVIT" rel-entity-name="InventoryItem">
<key-map field-name="inventoryItemId"/>
</relation>
<relation type="one" fk-name="INV_ITDTL_WEFF" rel-entity-name="WorkEffort">
<key-map field-name="workEffortId"/>
</relation>
<relation type="one-nofk" rel-entity-name="OrderItemShipGrpInvRes">
<key-map field-name="orderId"/>
<key-map field-name="orderItemSeqId"/>
<key-map field-name="shipGroupSeqId"/>
<key-map field-name="inventoryItemId"/>
</relation>
<relation type="one" fk-name="INV_ITDTL_FAMNT" rel-entity-name="FixedAssetMaint">
<key-map field-name="fixedAssetId"/>
<key-map field-name="maintHistSeqId"/>
</relation>
<relation type="one" fk-name="INV_ITDTL_ITMIS" rel-entity-name="ItemIssuance">
<key-map field-name="itemIssuanceId"/>
</relation>
<relation type="one-nofk" rel-entity-name="WorkEffortInventoryAssign">
<key-map field-name="workEffortId"/>
<key-map field-name="inventoryItemId"/>
</relation>
<relation type="one-nofk" rel-entity-name="WorkEffortInventoryProduced">
<key-map field-name="workEffortId"/>
<key-map field-name="inventoryItemId"/>
</relation>
<relation type="one" fk-name="INV_ITDTL_SHRCT" rel-entity-name="ShipmentReceipt">
<key-map field-name="receiptId"/>
</relation>
<relation type="one" fk-name="INV_ITDTL_PHINV" rel-entity-name="PhysicalInventory">
<key-map field-name="physicalInventoryId"/>
</relation>
<relation title="Reason" fk-name="INV_ITDTL_REAS" rel-entity-name="Enumeration" type="one">
<key-map field-name="reasonEnumId" rel-field-name="enumId"/>
</relation>
<relation type="one-nofk" rel-entity-name="InventoryItemVariance">
<key-map field-name="inventoryItemId"/>
<key-map field-name="physicalInventoryId"/>
</relation>
</entity>
<view-entity entity-name="InventoryItemDetailSummary"
package-name="org.ofbiz.product.inventory"
title="Inventory Item Detail Summary View Entity">
<member-entity entity-alias="IID" entity-name="InventoryItemDetail"/>
<alias entity-alias="IID" name="inventoryItemId" group-by="true"/>
<alias entity-alias="IID" name="availableToPromiseTotal" field="availableToPromiseDiff" function="sum"/>
<alias entity-alias="IID" name="quantityOnHandTotal" field="quantityOnHandDiff" function="sum"/>
<alias entity-alias="IID" name="accountingQuantityTotal" field="accountingQuantityDiff" function="sum"/>
</view-entity>
<view-entity entity-name="InventoryItemDetailForSum" package-name="org.ofbiz.product.inventory"
title="Inventory Item And Inventory Item Detail for Summation View Entity">
<member-entity entity-alias="II" entity-name="InventoryItem"/>
<member-entity entity-alias="IID" entity-name="InventoryItemDetail"/>
<alias entity-alias