use of org.apache.cayenne.gen.ClassGenerationAction in project cayenne by apache.
the class StandardModeController method newGenerator.
@Override
protected ClassGenerationAction newGenerator() {
ClassGenerationAction action = new ClassGenerationAction();
getApplication().getInjector().injectMembers(action);
return action;
}
use of org.apache.cayenne.gen.ClassGenerationAction 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