[jboss-user] [JBoss Seam] - Hibernate SQL statements are not getting logged
do-not-reply at jboss.com
Sat May 19 18:39:08 EDT 2007
I'm running Seam 1.2.1 on JBoss 4.0.5GA.
Also using JPA EntityManager, not going straight against a Session.
In each of my persistence.xmls, I've added
| <!-- Echo all executed SQL to stdout -->
| <property name="show_sql" value="true" />
| <!-- pretty print of all SQL-Statements -->
| <property name="hibernate.format_sql" value="true" />
to the properties of my datasource.
When the app is deployed, I can see the sql statements that create the database (as hibernate.hbm2ddl.auto is set to create-drop). I can also see the statements for entities get pregenerated. This is all in the default server log.
When I run the app, persist my entities, and let the method complete on the EJB, I don't see the actual SQL that is getting executed to persist my entities.
What am I doing wrong here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047022#4047022
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047022
More information about the jboss-user