Alex Rivera | Logout

Hibernate shows question marks in SQL query

Asked 2013-04-02T23:11:41.437
17

How do I see the actual value in query instead of questions marks? Now, I am seeing

Hibernate: inser into TABEL (ID, FORMAT, SIZE) values (?,?,?)

I want to see the real values being used instead of the question marks.

I set this in my hibernate config file and turned on the debug flag.

<property name="show_sql"> true </property>

Thank you in advance.

Edit
Report

1 Answer

-1

Use Log4j or Logback to enable and set javax.sql to DEBUG:

<logger name="java.sql" level="debug">
    <appender-ref ref="STDOUT" /> <!-- or your own appender -->
</logger>
answered 2013-04-02T23:18:30.530

Your Answer