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 : 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));
  }
}

If you find this useful:
Should I come up with a pull request or is creating a jira ticket first
required?

Reply via email to