persistence@glassfish.java.net

Re: Benefit of _at_NamedQuery

From: James Sutherland <jamesssss_at_yahoo.com>
Date: Tue, 15 Apr 2008 06:34:38 -0700 (PDT)

The setting of some query hints or query properties on the named query after
accessing it from the entity manager can require the query's SQL to be
regenerated (hints that affect the SQL). For named queries it is best to
set all of the hints on the original named query definition.


Markus KARG-2 wrote:
>
> James,
>
> thank you very much for that detailed explanation. Now I see clear. My
> test (like virtually any micro benchmark) was not good enough. I will
> follow your tips to do more (and better) performance measuring when the
> application is finished. :-)
>
> You talked about the possibility of modifying the named query? What do
> you mean with "modifying"?
>


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/Benefit-of-%40NamedQuery-tp16653037p16700575.html
Sent from the java.net - glassfish persistence mailing list archive at Nabble.com.