I am trying to exclude two tables created by Liquibase when using TypeSafe Config.
jooq {
# databasechangelog = Liquibase generated tables
# databasechangeloglock = Liquibase generated tables
excludes = "databasechangelog, databasechangeloglock"
}
When I only supply one excludes such as "databsechangelog"
, it works.
More than one excludes should be separated by a comma (http://www.jooq.org/doc/2.6/manual/code-generation/codegen-configuration/), but instead it generated both tables.
Doing this is not allowed either.
excludes = "databasechangelog", "databasechangeloglock"
Inside the library, its simplifying calling this (note: getExcludes is a String
)
database.setExcludes(new String[]{StringUtils.defaultString(d1.getExcludes())});
Has anyone else ran into this problem?
Here's my code generation
new GenerationTool {
setConnection(connection)
run(new Configuration {
withGenerator(new Generator {
withName(config.jooq.generatorClass)
withDatabase(new org.jooq.util.jaxb.Database {
withIncludes(config.jooq.includes)
withExcludes(config.jooq.excludes)
withInputSchema(config.jooq.inputSchema)
withName(config.jooq.databaseClass)
})
withTarget(new Target {
withPackageName(config.jooq.pkg)
withDirectory(config.jooq.directory)
})
withGenerate(new Generate {
setDaos(true)
})
})
})
}