Hibernate shows question marks in SQL query
hibernate, java
Solution
Hibernate uses prepared statements so you can't see the full SQL. You can set the log level for `org.hibernate.type` to `trace` to see the values bound to the parameters.
Reference
- Hibernate 3.5 Core Documentation
- 3.5. Logging
- Hibernate 4.1 Core Documentation
- 4.1. Logging
(As mentioned in/see also this answer).
Problem
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.