persistence@glassfish.java.net

RE: How to display Toplink's generated query?

From: Sergio Samayoa <sergiosamayoa_at_icon.com.gt>
Date: Fri, 7 Mar 2008 09:00:02 -0600

According to:

http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/toplink
-jpa-extensions.html

With log level FINE. Did you tried with this level?

Regards.

-----Mensaje original-----
De: gcsaba2 [mailto:gcsaba2_at_freemail.hu]
Enviado el: Viernes, 07 de Marzo de 2008 08:49 a.m.
Para: persistence_at_glassfish.dev.java.net
Asunto: How to display Toplink's generated query?


Is there a way I can see what query TopLink generates? For example, if I
write "from Post", then it probably generates something like "select p.id,
p.name, p.date from Post p"
You can see this kind of message when there's an error in the SQL query, for
example when a foreign key is violated, but I'd like to display it at all
time. In Hibernate this can be done by simply setting the debug level to
DEBUG.
In TopLink I have the debug level set to FINEST, but it doesn't print the
queries.
-- 
View this message in context:
http://www.nabble.com/How-to-display-Toplink%27s-generated-query--tp15892878
p15892878.html
Sent from the java.net - glassfish persistence mailing list archive at
Nabble.com.