org.dbtools.plugin.extensions.BaseDBToolsExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-dbtools-plugin Show documentation
Show all versions of gradle-dbtools-plugin Show documentation
DBTools ORM Class Generator.
package org.dbtools.plugin.extensions;
/**
* Goal which creates JPA entities based on an DBTools schema.xml file
*
* @author Jeff Campbell
* @version $Id$
*
*/
public abstract class BaseDBToolsExtension {
/**
* Name of the directory where the schema file is located.
*/
private String schemaDir = "src/main/database";
/**
* Name of the schema file to do the generation from.
*/
private String schemaXMLFilename = "schema.xml";
public String getSchemaFullFilename() {
if (schemaDir.endsWith("\\") || schemaDir.endsWith("/")) {
return schemaDir + schemaXMLFilename;
} else {
return schemaDir + "/" + schemaXMLFilename;
}
}
public String getSchemaDir() {
return schemaDir;
}
public void schemaDir(String schemaDir) {
this.schemaDir = schemaDir;
}
public String getSchemaXMLFilename() {
return schemaXMLFilename;
}
public void schemaXMLFilename(String schemaXMLFilename) {
this.schemaXMLFilename = schemaXMLFilename;
}
}