Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Turned on JPA caching, now get weird errors resolving @OneToMany

Now I'm reading that selective caching is on by default throughout EclipseLink: http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/cache_usaged#Section_3.7.1_-_The_shared-cache-mode_element

So it would seem that the <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode> should be a no-op.

And if it's a no-op, then I'm not sure how it would trigger this bug.

L

On Wed, Mar 16, 2011 at 2:06 PM, Laird Nelson <ljnelson@xxxxxxxxx> wrote:
On Wed, Mar 16, 2011 at 1:55 PM, Laird Nelson <ljnelson@xxxxxxxxx> wrote:
I finally got around to implementing caching.  I annotated certain entities with the @Cacheable(true) annotation, and put this in my persistence.xml:

<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>

I see that others have had this problem: http://www.eclipse.org/forums/index.php?t=tree&th=205504&S=ddabf812109c76ae6c9b186010d70a2c#page_top

That post mentions https://bugs.eclipse.org/bugs/show_bug.cgi?id=337422.

The version report in there is incorrect; Glassfish uses 2.2.0.

I hope someone can tell me what a workaround might be; I need selective caching.

Best,
Laird



Back to the top