I use:

  <property name="hibernate.show_sql" value="true"/>



On Oct 25, 2010, at 4:29 PM, Lev wrote:

> hi,
> 
> i am debugging an application and want to view all of the hibernate
> generated SQL statements. i added the following line to my
> persistence.xml:
> 
>   <property name="hibernate.showSql" value="true"/>
> 
> however, i only see the database messages related to the initial
> table construction -- not the query statements. for example i see
> statements such as:
> 
> 8:22:08,383 DEBUG SchemaExport:303 - drop table if exists hibernate_sequences
> 18:22:08,386 DEBUG SchemaExport:303 - create table Line (id bigint not
> null, type...
> 
> what do i need to do in order to view the hibernate generated queries?
> 
> note: i am using JPA, hibernate, and Stripersist.
> 
> thank you.
> 
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users

Joaquin Valdez
[email protected]




------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to