[
https://issues.apache.org/jira/browse/EMPIREDB-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rainer Döbele closed EMPIREDB-484.
----------------------------------
Resolution: Fixed
> CodeGen: exclude-Pattern for tables and views
> ---------------------------------------------
>
> Key: EMPIREDB-484
> URL: https://issues.apache.org/jira/browse/EMPIREDB-484
> Project: Empire-DB
> Issue Type: New Feature
> Components: CodeGenerator
> Affects Versions: empire-db-3.4.0
> Reporter: Ralf Eichinger
> Priority: Minor
> Fix For: empire-db-3.4.1
>
>
> I am using maven plugin to generate code from existing database.
> there are tables from thirdparty software (flowable) starting with "ACT_"
> and "FLW_".
> I want to exclude them from generation.
> Currently this is not possible.
> But I think it would be easy to add a regex matching for configured exclusion
> pattern in CodeGenWriter.generateCodeFiles:
> // Create table classes, record interfaces and record classes for (DBTable
> table :
> {code:java}
> db.getTables()) {
> if (table.getName().matches(config.getDbTablesExclusionPattern()) {
> continue; // skip the excluded table
> }
> if (!config.isNestTables()) {
> // if table nesting is disabled, create separate table classes
> generatedFiles.add(this.createTableClass(db, table));
> }
> if (config.isGenerateRecords()) {
> // generate record
> generatedFiles.add(this.createRecordClass(db, table));
> }
> }{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)