Community
Participate
Working Groups
According to described in test plan http://aseng-wiki.us.oracle.com/asengwiki/pages/viewpage.action?pageId=1326088375, I have made following changes to exsting jpa/cachebale test model and tests to implement stuff stated in the test plan: 1. persistence.xml under eclipselink.jpa.test\resource\eclipselink-annotation-model has been updated to include newly added entity CacheableRelationshipsEntity like: <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableRelationshipsEntity</class> 2. add new entity "CacheableRelationshipsEntity" in eclipselink.jpa.test\src\org\eclipse\persistence\testing\models\jpa\cacheable, to define OneToMany, ManyToOne, ManyToMany and ElementCollection relationships 3. modify CacheableTableCreator.jara under eclipselink.jpa.test\src\org\eclipse\persistence\testing\models\jpa\cacheable to create tables for above new entity and its related relationships 4. modify CacheableModelJunitTest.java under eclipselink.jpa.test\src\org\eclipse\persistence\testing\tests\jpa\cacheable: (1). modify testLoadMixedCacheTree(), testIsolatedIsolation(), testProtectedIsolation(), testEmbeddableProtectedCaching(), testProtectedCaching(), testReadOnlyTree() to include OneToMany, ManyToOne, ManyToMany and ElementCollection relationships (2). add new tests testUpdateProtectedManyToOne(), testUpdateProtectedManyToMany() and testUpdateProtectedElementCollection() to test if the protected relationship is begin merged to shared cache in these dirrerent relationships
Created attachment 188950 [details] patch for test implementation for test plan of "relationships between cacheable and noncacheable entities"
Created attachment 188954 [details] new patch for the test implementation
In this new patch, add testIsolationBeforeEarlyTxBegin() to test cache isolation after early transaction has begun.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink