Thanks for the replies!
It is the exact same query in sql, it doesn't show the HQL query.
My entire log4j.xml is this:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/' >
<appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.SimpleLayout"/>
</appender>
<logger name="org.hibernate.SQL" >
<level value="debug"/>
<appender-ref ref="ConsoleAppender"/>
</logger>
<!--
<logger name="org.hibernate.cache" >
<level value="debug"/>
<appender-ref ref="ConsoleAppender"/>
</logger>
-->
<root>
<priority value ="info" />
<appender-ref ref="ConsoleAppender"/>
</root>
</log4j:configuration>
Here are a few example lines from the console.
DEBUG - select marketingm0_.mci_id as mci1_32_0_, marketingm0_.mci_name as mci2_32_0_, marketingm0_.mci_phone as mci3_32_0_, marketingm0_.mci_email as mci4_32_0_ from NEIL.manager_contact_info marketingm0_ where marketingm0_.mci_id=?
DEBUG - select marketingm0_.mci_id as mci1_32_0_, marketingm0_.mci_name as mci2_32_0_, marketingm0_.mci_phone as mci3_32_0_, marketingm0_.mci_email as mci4_32_0_ from NEIL.manager_contact_info marketingm0_ where marketingm0_.mci_id=?
DEBUG - select MIN(response0_.off_create_date) as col_0_0_ from NEIL.OFFER response0_ left outer join NEIL.offer_notes response0_1_ on response0_.OFF_ID=response0_1_.on_off_id where response0_.off_usr_id=? and response0_.off_status=?
DEBUG - select MIN(response0_.off_create_date) as col_0_0_ from NEIL.OFFER response0_ left outer join NEIL.offer_notes response0_1_ on response0_.OFF_ID=response0_1_.on_off_id where response0_.off_usr_id=? and response0_.off_status=?
|