EntityResolver resolver = getDomain().getEntityResolver();
// test with adapter that supports keys
DbAdapter adapter = buildAdapter(true);
InsertBatchQuery batch1 = new InsertBatchQuery(resolver.lookupObjEntity(
GeneratedColumnTestEntity.class).getDbEntity(), 5);
assertTrue(new BatchAction(batch1, adapter, resolver).hasGeneratedKeys());
InsertBatchQuery batch2 = new InsertBatchQuery(resolver.lookupObjEntity(
Artist.class).getDbEntity(), 5);