Hibernate version:2.1
Mapping documents:custom
Full stack trace of any exception that occurs:
Name and version of the database you are using:MySQL 4
Hello, I am getting the following error:
Code:
WARNING: SQL Error: 0, SQLState: S1000
Aug 31, 2004 4:31:53 PM net.sf.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: Can't call commit when autocommit=true
Aug 31, 2004 4:31:53 PM net.sf.hibernate.JDBCException <init>
SEVERE: Could not save object
I have the following in a file to turnoff autoCommit. Is this not correct? Thanks for your help.
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory name="java:/hibernate/HiberateFactory">
<!-- Use a Tomcat JNDI datasource -->
<property name="connection.datasource">java:comp/env/jdbc/kuvata</property>
<property name="autoCommit">false</property>
<property name="show_sql">true</property>
<property name="use_outer_join">true</property>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<mapping info..........>
</session-factory>
</hibernate-configuration>