Artist.class).getDbEntity(), 5);
assertFalse(new BatchAction(batch2, adapter, resolver).hasGeneratedKeys());
}
public void testHasGeneratedKeys2() throws Exception {
EntityResolver resolver = runtime.getChannel().getEntityResolver();
// test with adapter that does not support keys...
JdbcAdapter adapter = buildAdapter(false);
InsertBatchQuery batch1 = new InsertBatchQuery(resolver.lookupObjEntity(
GeneratedColumnTestEntity.class).getDbEntity(), 5);
assertFalse(new BatchAction(batch1, adapter, resolver).hasGeneratedKeys());
InsertBatchQuery batch2 = new InsertBatchQuery(resolver.lookupObjEntity(
Artist.class).getDbEntity(), 5);
assertFalse(new BatchAction(batch2, adapter, resolver).hasGeneratedKeys());
}