Solved Problems – SQL, Java, JBoss



JPA show SQL query


If you need to show SQL in JBoss debug screen (console) from your JPA / EJB project:

<properties>
<property name= “hibernate.dialect”value=”org.hibernate.dialect.PostgreSQLDialect” />
<property name= “hibernate.show_sql” value=”true” />
</properties>

in persistence.xml should do the trick.


Leave a comment