Fixed a bug in the entity engine pk cache where view entities went stale - https://issues.apache.org/jira/browse/OFBIZ-5192.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484279 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian Crum
2013-05-19 12:29:44 +00:00
parent 00e0e6555d
commit fa77ee6655
3 changed files with 46 additions and 1 deletions
@@ -70,6 +70,27 @@ under the License.
<field name="description" type="description"/>
<prim-key field="testingTypeId"/>
</entity>
<!-- =========================================================
Used for testing views with pks.
This simulates the Party->PartyGroup and Party->Person entity relationships.
========================================================= -->
<entity entity-name="TestingSubtype" package-name="org.ofbiz.entity.test" title="Testing Subtype Entity">
<field name="testingTypeId" type="id-ne" />
<field name="subtypeDescription" type="description" />
<prim-key field="testingTypeId" />
</entity>
<!-- =========================================================
Used for testing views with pks
========================================================= -->
<view-entity entity-name="TestingViewPks" package-name="org.ofbiz.entity.test" title="Testing And TestingSubtype View">
<member-entity entity-alias="TST" entity-name="TestingType" />
<member-entity entity-alias="TSTSUB" entity-name="TestingSubtype" />
<alias-all entity-alias="TST" />
<alias-all entity-alias="TSTSUB" />
<view-link entity-alias="TST" rel-entity-alias="TSTSUB">
<key-map field-name="testingTypeId" />
</view-link>
</view-entity>
<!-- =========================================================
An entity for testing the BLOB data type
========================================================== -->