Bug 404626 - Refreshing an entity with a reference to a cache-isolated entity has side-effects
Summary: Refreshing an entity with a reference to a cache-isolated entity has side-eff...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P2 minor with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-29 18:51 EDT by Sebastian Kienzl CLA
Modified: 2022-06-09 10:08 EDT (History)
2 users (show)

See Also:


Attachments
Minimal example to reproduce (11.00 KB, application/x-tar)
2013-03-29 18:51 EDT, Sebastian Kienzl CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Kienzl CLA 2013-03-29 18:51:40 EDT
Created attachment 229186 [details]
Minimal example to reproduce

As I've described here: http://www.eclipse.org/forums/index.php?t=msg&th=456389&

I have an entity (called ItemList) that owns a collection of entities (called Entry).
Each of these Entry(s) refer to one entity each (an Item) in a non-owning way.
These Item(s) are cache-isolated i.e. have CacheIsolationType.ISOLATED set.

Now, if I refresh my ItemList and afterwards fetch the same ItemList in a different EntityManager, the references in Entry to its Item are null!

If Item is not cache-isolated or if refresh isn't called, everything will work as expected.

Tested with eclipselink-2.5.0.v20130321-85f6cb0.
Comment 1 Tom Ware CLA 2013-04-12 13:43:30 EDT
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:08:08 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink