use of org.apache.cayenne.gen.ClientClassGenerationAction in project cayenne by apache.
the class CayenneGeneratorTask method createGeneratorAction.
protected ClassGenerationAction createGeneratorAction() {
ClassGenerationAction action = client ? new ClientClassGenerationAction() : new ClassGenerationAction();
action.setContext(getVppContext());
action.setDestDir(destDir);
action.setEncoding(encoding);
action.setMakePairs(makepairs);
action.setArtifactsGenerationMode(mode);
action.setOutputPattern(outputPattern);
action.setOverwrite(overwrite);
action.setSuperPkg(superpkg);
action.setSuperTemplate(supertemplate);
action.setTemplate(template);
action.setEmbeddableSuperTemplate(embeddablesupertemplate);
action.setEmbeddableTemplate(embeddabletemplate);
action.setQueryTemplate(querytemplate);
action.setQuerySuperTemplate(querysupertemplate);
action.setUsePkgPath(usepkgpath);
action.setCreatePropertyNames(createpropertynames);
return action;
}
use of org.apache.cayenne.gen.ClientClassGenerationAction in project cayenne by apache.
the class CayenneGeneratorMojo method createGenerator.
/**
* Factory method to create internal class generator. Called from
* constructor.
*/
protected ClassGenerationAction createGenerator() {
ClassGenerationAction action;
if (client) {
action = new ClientClassGenerationAction();
} else {
action = new ClassGenerationAction();
}
injector.injectMembers(action);
action.setDestDir(destDir);
action.setEncoding(encoding);
action.setMakePairs(makePairs);
action.setArtifactsGenerationMode(mode);
action.setOutputPattern(outputPattern);
action.setOverwrite(overwrite);
action.setSuperPkg(superPkg);
action.setSuperTemplate(superTemplate);
action.setTemplate(template);
action.setEmbeddableSuperTemplate(embeddableSuperTemplate);
action.setEmbeddableTemplate(embeddableTemplate);
action.setUsePkgPath(usePkgPath);
action.setCreatePropertyNames(createPropertyNames);
return action;
}
Aggregations