I got the following error when I tried to save new object into Oracle 9i DB.
(see below)
The question is: How to get the detailed SQL statements generated by Hibernate(in my case, it will be several INSERT statements) so I can see what's wrong? (I set show_sql=true)
Hibernate version: 2.1.7
Full stack trace of any exception that occurs: 2005-02-16 17:18:02,734 WARN [main] util.JDBCExceptionReporter (JDBCExceptionReporter.java:38) - SQL Error: 936, SQLState: 42000
2005-02-16 17:18:02,734 ERROR [main] util.JDBCExceptionReporter (JDBCExceptionReporter.java:46) - ORA-00936: missing expression
2005-02-16 17:18:02,734 WARN [main] util.JDBCExceptionReporter (JDBCExceptionReporter.java:38) - SQL Error: 936, SQLState: 42000
2005-02-16 17:18:02,734 ERROR [main] util.JDBCExceptionReporter (JDBCExceptionReporter.java:46) - ORA-00936: missing expression
2005-02-16 17:18:02,750 ERROR [main] util.JDBCExceptionReporter (JDBCException.java:38) - Could not save object
java.sql.SQLException: ORA-00936: missing expression
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:2337
Name and version of the database you are using: Oracle 9i
The generated SQL (show_sql=true):I set it true, but no SQL statement
|