[hibernate-commits] Hibernate SVN: r17535 - search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Thu Sep 24 10:36:36 EDT 2009


Author: jcosta at redhat.com
Date: 2009-09-24 10:36:36 -0400 (Thu, 24 Sep 2009)
New Revision: 17535

Modified:
   search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/TransactionTest.java
Log:
HSEARCH-400 - Added s.connection().setAutoCommit( true ); to the connection in the last scenario of the test

Modified: search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/TransactionTest.java
===================================================================
--- search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/TransactionTest.java	2009-09-23 16:25:07 UTC (rev 17534)
+++ search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/TransactionTest.java	2009-09-24 14:36:36 UTC (rev 17535)
@@ -40,6 +40,7 @@
 		assertEquals( "rollback() should not index", 3, getDocumentNumber() );
 
 		s = getSessions().openSession();
+		s.connection().setAutoCommit( true );  // www.hibernate.org/403.html
 		s.persist(
 				new Document( "Java Persistence with Hibernate", "Object/relational mapping with Hibernate", "blah blah blah" )
 		);



More information about the hibernate-commits mailing list