if ( getDialect() instanceof DataDirectOracle9Dialect ) {
reportSkip( "DataDirect drivers known to not support JDBC3 getGeneratedKeys for Oracle", "oracle getGeneratedKeys support" );
return;
}
Session session = openSession();
session.beginTransaction();
MyEntity e = new MyEntity( "entity-1" );
session.save( e );
// this insert should happen immediately!
assertEquals( "id not generated through forced insertion", new Long(1), e.getId() );
session.delete( e );
session.getTransaction().commit();
session.close();