users@glassfish.java.net

RE: Problem with JPA and cache

From: Manfred Riem <mriem_at_manorrock.org>
Date: Wed, 16 Jul 2008 07:13:09 -0600

Hi there again,

Can you turn up your Toplink logging and post what it does?

Manfred

-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Wednesday, July 16, 2008 6:09 AM
To: users_at_glassfish.dev.java.net
Subject: Re: RE: RE: RE: Problem with JPA and cache

Neither EntityManager.find nor EntityManager.getReference support a Query hint. This is not using a query but an explicit Find by primary key.

Yes, if I issue an EntityManager.refresh on the found Parent object, it will pick refresh the object from the database and find all of the children. This is not a solution, however, as it negates having a second level cache and will kill performance.
[Message sent by forum member 'bbergquist' (bbergquist)]

http://forums.java.net/jive/thread.jspa?messageID=287007

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net