use of io.vertigo.studio.plugins.mda.task.model.DAOModel in project vertigo by KleeGroup.
the class TaskGeneratorPlugin method generateDao.
/**
* Génération d'un DAO c'est à dire des taches afférentes à un objet.
*/
private static void generateDao(final String targetSubDir, final FileGeneratorConfig fileGeneratorConfig, final MdaResultBuilder mdaResultBuilder, final DtDefinition dtDefinition, final Collection<TaskDefinition> taskDefinitions) {
final DAOModel daoModel = new DAOModel(fileGeneratorConfig, dtDefinition, taskDefinitions);
final Map<String, Object> model = new MapBuilder<String, Object>().put("dao", daoModel).build();
FileGenerator.builder(fileGeneratorConfig).withModel(model).withFileName(daoModel.getClassSimpleName() + ".java").withGenSubDir(targetSubDir).withPackageName(daoModel.getPackageName()).withTemplateName("task/template/dao.ftl").build().generateFile(mdaResultBuilder);
}
Aggregations