edbras
edbras

Reputation: 4404

Exclude Column of a certain table in JOOQ code generation?

How can I exclude a column in a certain table with JOQQ code generation? I have in maven the part of the "jooq-codegen-maven" plugin:

                <database>
                    <name>org.jooq.meta.mysql.MySQLDatabase</name>
                    <inputSchema>fishes</inputSchema>
                    <includeExcludeColumns>true</includeExcludeColumns>
                    <includes>.*</includes>
                    <excludes>users.type|users.mark</excludes>

                </database>

However, that doesn't work. Leaving out "users.", it will work but then the columns will be ignored in all tables, and that is not what I want.

Upvotes: 2

Views: 2853

Answers (1)

Lukas Eder
Lukas Eder

Reputation: 220867

You have to either fully qualify an object or not qualify it at all. So, write:

<excludes>fishes\.users\.(type|mark)</excludes>

Upvotes: 3

Related Questions