assertEquals("pk_test_entity", pkGenerator.sequenceName(entity));
}
public void testSequenceNameCustom1() throws Exception {
DbEntity entity = new DbEntity("TEST_ENTITY");
DbKeyGenerator customGenerator = new DbKeyGenerator();
customGenerator.setGeneratorType(DbKeyGenerator.ORACLE_TYPE);
customGenerator.setGeneratorName("CUSTOM_GENERATOR");
entity.setPrimaryKeyGenerator(customGenerator);
assertEquals("custom_generator", pkGenerator.sequenceName(entity));
}