Author: jonesde
Date: Wed Aug 8 00:08:41 2007
New Revision: 563776
URL:
http://svn.apache.org/viewvc?view=rev&rev=563776Log:
Added ProductCategoryRollupAndChild view entity for querying on the child categories of another category
Modified:
ofbiz/trunk/applications/product/entitydef/entitygroup.xml
ofbiz/trunk/applications/product/entitydef/entitymodel.xml
Modified: ofbiz/trunk/applications/product/entitydef/entitygroup.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/entitydef/entitygroup.xml?view=diff&rev=563776&r1=563775&r2=563776==============================================================================
--- ofbiz/trunk/applications/product/entitydef/entitygroup.xml (original)
+++ ofbiz/trunk/applications/product/entitydef/entitygroup.xml Wed Aug 8 00:08:41 2007
@@ -47,6 +47,7 @@
<entity-group group="org.ofbiz" entity="ProductCategoryMemberAndRole" />
<entity-group group="org.ofbiz" entity="ProductCategoryRole" />
<entity-group group="org.ofbiz" entity="ProductCategoryRollup" />
+ <entity-group group="org.ofbiz" entity="ProductCategoryRollupAndChild" />
<entity-group group="org.ofbiz" entity="ProductCategoryRollupAndRole" />
<entity-group group="org.ofbiz" entity="ProductCategoryType" />
<entity-group group="org.ofbiz" entity="ProductCategoryTypeAttr" />
Modified: ofbiz/trunk/applications/product/entitydef/entitymodel.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/entitydef/entitymodel.xml?view=diff&rev=563776&r1=563775&r2=563776==============================================================================
--- ofbiz/trunk/applications/product/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/product/entitydef/entitymodel.xml Wed Aug 8 00:08:41 2007
@@ -459,6 +459,17 @@
<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"/>
+ <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">