Author: jleroux
Date: Thu Jun 3 03:36:37 2010
New Revision: 950861
URL:
http://svn.apache.org/viewvc?rev=950861&view=revLog:
A patch from Sascha Rodekamp "Entity ProdCatalogCategoryType Parent Relation" (
https://issues.apache.org/jira/browse/OFBIZ-3793) - OFBIZ-3793
The ProdCatalogCategoryType didn't have a parent Relation. Here is a fix that added a parentTypeId field and the relation definition
Modified:
ofbiz/trunk/applications/product/entitydef/entitymodel.xml
Modified: ofbiz/trunk/applications/product/entitydef/entitymodel.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/entitydef/entitymodel.xml?rev=950861&r1=950860&r2=950861&view=diff==============================================================================
--- ofbiz/trunk/applications/product/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/product/entitydef/entitymodel.xml Thu Jun 3 03:36:37 2010
@@ -93,8 +93,12 @@ under the License.
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"