use of com.mendmix.mybatis.crud.builder.InsertBuilder in project jeesuite-libs by vakinge.
the class GeneralSqlGenerator method generate.
public void generate() {
if (languageDriver == null)
languageDriver = configuration.getDefaultScriptingLanguageInstance();
List<MapperMetadata> mappers = MybatisMapperParser.getMapperMetadatas(group);
for (MapperMetadata entity : mappers) {
entity.setGroup(group);
new InsertBuilder().build(configuration, languageDriver, entity);
new InsertListBuilder().build(configuration, languageDriver, entity);
new DeleteByPrimaryKeyBuilder().build(configuration, languageDriver, entity);
new UpdateBuilder().build(configuration, languageDriver, entity);
new SelectAllBuilder().build(configuration, languageDriver, entity);
new SelectByPrimaryKeyBuilder().build(configuration, languageDriver, entity);
new SelectByPrimaryKeysBuilder().build(configuration, languageDriver, entity);
new CountAllBuilder().build(configuration, languageDriver, entity);
log.info(" >> generate autoCrud for:[{}] finish", entity.getEntityClass().getName());
}
}
Aggregations