Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337161

Summary: Test implementation for test plan of "EL 2.2: Relationships between cacheable and noncacheable entities"
Product: z_Archived Reporter: Yiping Zhao <yiping.zhao>
Component: EclipselinkAssignee: Project Inbox <eclipselink.orm-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: martin.grebac
Version: unspecifiedKeywords: test
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 454799    
Attachments:
Description Flags
patch for test implementation for test plan of "relationships between cacheable and noncacheable entities"
none
new patch for the test implementation none

Description Yiping Zhao CLA 2011-02-14 15:15:04 EST
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
Comment 1 Yiping Zhao CLA 2011-02-14 15:23:04 EST
Created attachment 188950 [details]
patch for test implementation for test plan of "relationships between cacheable and noncacheable entities"
Comment 2 Yiping Zhao CLA 2011-02-14 15:59:05 EST
Created attachment 188954 [details]
new patch for the test implementation
Comment 3 Yiping Zhao CLA 2011-02-14 16:00:46 EST
In this new patch, add testIsolationBeforeEarlyTxBegin() to test cache isolation after early transaction has begun.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:07:34 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink