users@glassfish.java.net

Re: RE: RE: RE: Problem with JPA and cache

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 Jul 2008 05:09:06 PDT

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