[jboss-jira] [JBoss JIRA] Commented: (AS7-1522) Regression in Hibernate's logging to find query errors

Juergen Zimmermann (JIRA) jira-events at lists.jboss.org
Fri Aug 12 10:49:11 EDT 2011


    [ https://issues.jboss.org/browse/AS7-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620714#comment-12620714 ] 

Juergen Zimmermann commented on AS7-1522:
-----------------------------------------

Thank you very much! Configuring DEBUG for org.hibernate.engine.jdbc.spi.SqlStatementLogger is exactly what I was looking for.

So the migration document for JBoss 7 should be updated, and hopefully the Hibernate developers are also updating their docs for 4.0.

> Regression in Hibernate's logging to find query errors
> ------------------------------------------------------
>
>                 Key: AS7-1522
>                 URL: https://issues.jboss.org/browse/AS7-1522
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JPA / Hibernate
>    Affects Versions: 7.0.0.Final
>         Environment: Jenkins build 1491
>            Reporter: Juergen Zimmermann
>            Assignee: Scott Marlow
>         Attachments: server.log, standalone.xml, testcase-src.zip, testcase.ear.zip
>
>
> Hibernate 3.x is logging the generated SQL queries when the logger category org.hibernate.SQL is set to DEBUG. This feature is extremely helpful in finding mapping errors because you can inspect the mapping result in the log file. For instance, see the Hibernate docs at http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html/session-configuration.html#configuration-logging
> I'll attach a testcase so that you can easily reproduce this issue.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list