Methods Summary |
---|
public boolean | appliesTo(org.hibernate.dialect.Dialect dialect)
return dialect.supportsIdentityColumns();
|
public java.lang.String[] | getMappings()
return new String[] {"sql/hand/identity/Mappings.hbm.xml"};
|
public static junit.framework.Test | suite()
return new FunctionalTestClassTestSuite( CustomInsertSQLWithIdentityColumnTest.class );
|
public void | testBadInsertionFails()
Session session = openSession();
session.beginTransaction();
Organization org = new Organization( "hola!" );
try {
session.save( org );
session.delete( org );
fail( "expecting bad custom insert statement to fail" );
}
catch( JDBCException e ) {
// expected failure
}
session.getTransaction().rollback();
session.close();
|