EJB3 Entities in JBoss use Hibernate under the hood. So in persistence.xml, I pass in the
property:
<property name="hibernate.show_sql" value="true" />
I'm pretty sure this instructs Hibernate to write to System.out. If anyone knows how
to get this sent to Commong Logging or Log4J appenders, I'd love to know.
I also like to see the output from the Schema Export, so set the following in my
$JBOSS_HOME/server//[servername]/conf/log4j.xml:
<!-- Show SQL Logs for Hibernate Schema Export -->
| <category name="org.hibernate.tool.hbm2ddl.SchemaExport">
| <priority value="DEBUG" />
| </category>
S,
ALR
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968192#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...