use of org.mybatis.generator.codegen.AbstractKotlinGenerator in project generator by mybatis.
the class IntrospectedTableKotlinImpl method calculateKotlinDataClassGenerator.
protected void calculateKotlinDataClassGenerator(List<String> warnings, ProgressCallback progressCallback) {
AbstractKotlinGenerator kotlinGenerator = new KotlinDataClassGenerator(getModelProject());
initializeAbstractGenerator(kotlinGenerator, warnings, progressCallback);
kotlinGenerators.add(kotlinGenerator);
}
use of org.mybatis.generator.codegen.AbstractKotlinGenerator in project generator by mybatis.
the class IntrospectedTableMyBatis3Impl method getGeneratedKotlinFiles.
@Override
public List<GeneratedKotlinFile> getGeneratedKotlinFiles() {
List<GeneratedKotlinFile> answer = new ArrayList<>();
for (AbstractKotlinGenerator kotlinGenerator : kotlinGenerators) {
List<KotlinFile> kotlinFiles = kotlinGenerator.getKotlinFiles();
for (KotlinFile kotlinFile : kotlinFiles) {
GeneratedKotlinFile gjf = new GeneratedKotlinFile(kotlinFile, kotlinGenerator.getProject(), context.getProperty(PropertyRegistry.CONTEXT_KOTLIN_FILE_ENCODING), context.getKotlinFormatter());
answer.add(gjf);
}
}
return answer;
}
use of org.mybatis.generator.codegen.AbstractKotlinGenerator in project generator by mybatis.
the class IntrospectedTableKotlinImpl method calculateKotlinMapperAndExtensionsGenerator.
protected void calculateKotlinMapperAndExtensionsGenerator(List<String> warnings, ProgressCallback progressCallback) {
AbstractKotlinGenerator kotlinGenerator = new KotlinMapperAndExtensionsGenerator(getClientProject());
initializeAbstractGenerator(kotlinGenerator, warnings, progressCallback);
kotlinGenerators.add(kotlinGenerator);
}
Aggregations