Can you see anything different about this test case? All the other tests use sequences too but for some reason this test case seems to cause us to hit either a db or jdbc bug. I can seem to properly reproduce it executing the statements myself, but the test case fails consistently when I run the matrix tests


23:05:10,280  INFO sqlonly:226 - create column table Dummy (id bigint not null, primary key (id)) 
23:05:10,377  INFO audit:162 - 1. Statement.executeUpdate(create column table Dummy (id bigint not null, primary key (id))) returned 0
23:05:10,378  INFO audit:162 - 1. Statement.getWarnings() returned null
23:05:10,378  INFO sqlonly:226 - create column table Paper (id integer not null, name nvarchar(255), value_id integer, owner_id 
integer, type_id integer, primary key (id)) 
23:05:10,476  INFO audit:162 - 1. Statement.executeUpdate(create column table Paper (id integer not null, name nvarchar(255), value_id integer, owner_id integer, type_id integer, primary key (id))) returned 0
23:05:10,477  INFO audit:162 - 1. Statement.getWarnings() returned null
23:05:10,477  INFO sqlonly:226 - create column table PaperType (id integer not null, name nvarchar(255), primary key (id)) 
23:05:10,574  INFO audit:162 - 1. Statement.executeUpdate(create column table PaperType (id integer not null, name nvarchar(255), primary key (id))) returned 0
23:05:10,575  INFO audit:162 - 1. Statement.getWarnings() returned null
23:05:10,575  INFO sqlonly:226 - create column table Price (id integer not null, amount double, currency nvarchar(255), primary 
key (id)) 
23:05:10,674  INFO audit:162 - 1. Statement.executeUpdate(create column table Price (id integer not null, amount double, currency nvarchar(255), primary key (id))) returned 0
23:05:10,674  INFO audit:162 - 1. Statement.getWarnings() returned null
23:05:10,674  INFO sqlonly:226 - create column table SomeGuy (id integer not null, primary key (id)) 
23:05:10,771  INFO audit:162 - 1. Statement.executeUpdate(create column table SomeGuy (id integer not null, primary key (id))) returned 0
23:05:10,772  INFO audit:162 - 1. Statement.getWarnings() returned null
23:05:10,772  INFO sqlonly:226 - create column table WildEntity (id integer not null, property nvarchar(255), primary key (id)) 
23:05:10,872  INFO audit:162 - 1. Statement.executeUpdate(create column table WildEntity (id integer not null, property nvarchar(255), primary key (id))) returned 0
23:05:10,872  INFO audit:162 - 1. Statement.getWarnings() returned null
23:05:10,873  INFO sqlonly:226 - create sequence hibernate_sequence start with 1 increment by 1 
23:05:10,967  INFO audit:162 - 1. Statement.executeUpdate(create sequence hibernate_sequence start with 1 increment by 1) returned 0
23:05:10,967  INFO audit:162 - 1. Statement.getWarnings() returned null
23:05:10,968  INFO audit:162 - 1. Statement.close() returned 
23:05:10,968  INFO audit:162 - 1. Connection.getWarnings() returned null
23:05:10,968  INFO audit:162 - 1. Connection.clearWarnings() returned 
23:05:10,969  INFO audit:162 - 1. Connection.setAutoCommit(false) returned 
23:05:11,082  INFO audit:162 - 1. Connection.getAutoCommit() returned false
23:05:11,083  INFO audit:162 - 1. Connection.getAutoCommit() returned false
23:05:11,187  INFO audit:162 - 1. PreparedStatement.new PreparedStatement returned 
23:05:11,187  INFO audit:162 - 1. Connection.prepareStatement(select hibernate_sequence.nextval from dummy) returned net.sf.log4jdbc.PreparedStatementSpy@12e2783a
23:05:11,188  INFO sqlonly:226 - select hibernate_sequence.nextval from dummy 
23:05:11,289  INFO resultset:162 - 1. ResultSet.new ResultSet returned 
23:05:11,289  INFO audit:162 - 1. PreparedStatement.executeQuery() returned net.sf.log4jdbc.ResultSetSpy@554c3033
23:05:11,290  INFO resultset:162 - 1. ResultSet.next() returned false
23:05:11,294 ERROR audit:104 - 1. ResultSet.getLong(1)
com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Result set is positioned after last row.
	at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
	at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateSQLException(SQLExceptionSapDB.java:113)
	at com.sap.db.jdbc.ResultSetSapDB.getCurrentRecord(ResultSetSapDB.java:2815)
	at com.sap.db.jdbc.ResultSetSapDB.getLong(ResultSetSapDB.java:1159)
	at com.sap.db.jdbc.trace.ResultSet.getLong(ResultSet.java:180)
	at net.sf.log4jdbc.ResultSetSpy.getLong(ResultSetSpy.java:2688)
	at org.hibernate.id.IdentifierGeneratorHelper$BasicHolder.initialize(IdentifierGeneratorHelper.java:292)
	at org.hibernate.id.enhanced.SequenceStructure$1.getNextValue(SequenceStructure.java:103)
	at org.hibernate.id.enhanced.NoopOptimizer.generate(NoopOptimizer.java:53)
	at org.hibernate.id.enhanced.SequenceStyleGenerator.generate(SequenceStyleGenerator.java:422)
	at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:118)
	at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:209)
	at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:152)
	at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:79)
	at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:854)
	at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:828)
	at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:832)
	at org.hibernate.test.annotations.generics.GenericsTest.testManyToOneGenerics(GenericsTest.java:57)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
	at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:63)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
	at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:62)
23:05:11,299  INFO resultset:162 - 1. ResultSet.close() returned 
23:05:11,300  INFO audit:162 - 1. PreparedStatement.getMaxRows() returned 0
23:05:11,300  INFO audit:162 - 1. PreparedStatement.getQueryTimeout() returned 0
23:05:11,389  INFO audit:162 - 1. PreparedStatement.close() returned 
23:05:11,482  INFO audit:162 - 1. Connection.rollback() returned 
23:05:11,483  INFO audit:162 - 1. Connection.isClosed() returned false
23:05:11,483  INFO audit:162 - 1. Connection.getWarnings() returned null
23:05:11,483  INFO audit:162 - 1. Connection.clearWarnings() returned