Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRefreshing an entity with a reference to a cache-isolated entity has side-effects
https://www.eclipse.org/forums/index.php/mv/msg/456389/1013426/#msg_1013426
I've run into strange behaviour, which I want to discuss here before submitting a bug report.
I have an entity (called ItemList) that owns a collection of entities (called Entry).
Each of these Entry(s) refer to one entity (called Item) each 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 will be null!
If Item is not cache-isolated or if refresh isn't called, everything will work as expected.
I have prepared a minimal SE example, if someone feels like investigating.
Regards,
Seb
P.S.: I'm using 2.5.0M7 ]]>Sebastian Kienzl2013-02-23T16:23:02-00:00Re: Refreshing an entity with a reference to a cache-isolated entity has side-effects
https://www.eclipse.org/forums/index.php/mv/msg/456389/1014833/#msg_1014833
]]>James Sutherland2013-02-26T15:01:14-00:00Re: Refreshing an entity with a reference to a cache-isolated entity has side-effects
https://www.eclipse.org/forums/index.php/mv/msg/456389/1014888/#msg_1014888
I forgot to say: I've "worked around" it by not having Item(s) isolated at all, as having it isolated was merecly an artefact from a previous solution I had altogether dropped.
Let me know if I should provide the minimal example. Should I file a bug-report? To be honest, I was quite confused seeing so many open bugs for Eclipselink
Cheers]]>Sebastian Kienzl2013-02-26T16:50:53-00:00Re: Refreshing an entity with a reference to a cache-isolated entity has side-effects
https://www.eclipse.org/forums/index.php/mv/msg/456389/1016225/#msg_1016225
James Sutherland2013-03-05T14:44:24-00:00Re: Refreshing an entity with a reference to a cache-isolated entity has side-effects
https://www.eclipse.org/forums/index.php/mv/msg/456389/1029599/#msg_1029599
https://bugs.eclipse.org/bugs/show_bug.cgi?id=404626