I am using the EntityManager in a J2SE environment. Everything seems to be working so far. However, I noticed that it seems to be ignoring the autocommit value the I provided as a property in persistence.xml. The logs says that it's using autocommit true, but, I set it to false. Is this a bug?
Hibernate version: hibernate-3.1alpha1, hibernate-annotations-3.1beta3, hibernate-entitymanager-3.1beta1
Mapping documents:
persistence.xml
Code:
<?xml version="1.0"
encoding="UTF-8"?>
<entity-manager>
<name>bb_bb60</name>
<class>edu.uchicago.at.blackboard.persistence.entity.CalendarItem</class>
<class>edu.uchicago.at.blackboard.persistence.entity.Course</class>
<class>edu.uchicago.at.blackboard.persistence.entity.CourseMembership</class>
<class>edu.uchicago.at.blackboard.persistence.entity.CourseRole</class>
<class>edu.uchicago.at.blackboard.persistence.entity.User</class>
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.Oracle9Dialect"/>
<property name="hibernate.connection.driver_class"
value="oracle.jdbc.driver.OracleDriver"/>
<property name="hibernate.connection.url"
value="jdbc:oracle:thin:@localhost:1522:BB60"/>
<property name="hibernate.connection.username"
value=""/>
<property name="hibernate.connection.password"
value=""/>
<property name="hibernate.connection.autocommit"
value="false"/>
</properties>
</entity-manager>
Name and version of the database you are using: Oracle 9i
Debug level Hibernate log excerpt:
[exec] INFO: autocommit mode: true
[exec] Jun 29, 2005 4:38:49 PM org.hibernate.connection.DriverManagerConnectionProvider configure