I'm using
Hibernate 3.1.2 and
Hibernate Tools 3.1.0 Beta 4 in
Eclipse 3.1.1 with a
Sybase ASE 12.5.3 and I when I try to generate the code automatically I get the following error:
Code:
Exception while generating code
Reason:
org.hibernate.exception.GenericJDBCException: Error while reading primary key meta data for myDB.myTable
Details:Code:
org.hibernate.exception.GenericJDBCException: Error while reading primary key meta data for myDB.myTable
com.sybase.jdbc3.jdbc.SybSQLException: The 'CREATE TABLE' command is not allowed within a multi-statement transaction in the 'tempdb' database.
com.sybase.jdbc3.jdbc.SybSQLException: The 'CREATE TABLE' command is not allowed within a multi-statement transaction in the 'tempdb' database.
The settings that I'm using in the
hibernate.cfg.xml are correct because I was using Hibernate with this file and everything worked well.
Thank you very much,
Diego