Author: jonesde
Date: Thu Jul 9 04:25:11 2009
New Revision: 792391
URL:
http://svn.apache.org/viewvc?rev=792391&view=revLog:
Added order-by entity-condition to the StatusValidChangeTo view-entity, a test case for this new view-entity functionality that will simplify queries on it
Modified:
ofbiz/trunk/framework/common/entitydef/entitymodel.xml
Modified: ofbiz/trunk/framework/common/entitydef/entitymodel.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/entitydef/entitymodel.xml?rev=792391&r1=792390&r2=792391&view=diff==============================================================================
--- ofbiz/trunk/framework/common/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/framework/common/entitydef/entitymodel.xml Thu Jul 9 04:25:11 2009
@@ -415,24 +415,27 @@
</relation>
</entity>
<view-entity entity-name="StatusValidChangeToDetail"
- package-name="org.ofbiz.common.status"
- title="Status Valid Change To Detail View Entity">
- <member-entity entity-alias="SVC" entity-name="StatusValidChange"/>
- <member-entity entity-alias="SI" entity-name="StatusItem"/>
- <alias-all entity-alias="SVC"/>
- <alias-all entity-alias="SI"/>
- <view-link entity-alias="SVC" rel-entity-alias="SI">
- <key-map field-name="statusIdTo" rel-field-name="statusId"/>
- </view-link>
- <relation type="one" rel-entity-name="StatusValidChange">
- <key-map field-name="statusId"/>
- <key-map field-name="statusIdTo"/>
- </relation>
- <relation type="one" rel-entity-name="StatusItem">
- <key-map field-name="statusId"/>
- </relation>
+ package-name="org.ofbiz.common.status"
+ title="Status Valid Change To Detail View Entity">
+ <member-entity entity-alias="SVC" entity-name="StatusValidChange"/>
+ <member-entity entity-alias="SI" entity-name="StatusItem"/>
+ <alias-all entity-alias="SVC"/>
+ <alias-all entity-alias="SI"/>
+ <view-link entity-alias="SVC" rel-entity-alias="SI">
+ <key-map field-name="statusIdTo" rel-field-name="statusId"/>
+ </view-link>
+ <relation type="one" rel-entity-name="StatusValidChange">
+ <key-map field-name="statusId"/>
+ <key-map field-name="statusIdTo"/>
+ </relation>
+ <relation type="one" rel-entity-name="StatusItem">
+ <key-map field-name="statusId"/>
+ </relation>
+ <entity-condition>
+ <order-by field-name="sequenceId"/>
+ </entity-condition>
</view-entity>
-
+
<!-- ========================================================= -->
<!-- org.ofbiz.common.uom -->
<!-- ========================================================= -->