Hibernate shows question marks in SQL query
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).