« Unable to load tag handler class “tags.templates.InsertTag” for tag “template:insert” | Home
| An internal error occurred during: “Generating Artifacts”. Foreign key name mapped to different tables! previous: org.hibernate.mapping.Table current:org.hibernate.mapping.Table »
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