在JOOQ代码生成中排除某个table的列?
Exclude Column of a certain table in JOOQ code generation?
如何使用 JOQQ 代码生成排除某个 table 中的列?
我在 Maven 中有 "jooq-codegen-maven" 插件的一部分:
<database>
<name>org.jooq.meta.mysql.MySQLDatabase</name>
<inputSchema>fishes</inputSchema>
<includeExcludeColumns>true</includeExcludeColumns>
<includes>.*</includes>
<excludes>users.type|users.mark</excludes>
</database>
但是,这不起作用。省略 "users.",它会起作用,但随后所有 table 中的列将被忽略,这不是我想要的。
您必须要么完全限定一个对象,要么根本不限定它。所以,写:
<excludes>fishes\.users\.(type|mark)</excludes>
如何使用 JOQQ 代码生成排除某个 table 中的列? 我在 Maven 中有 "jooq-codegen-maven" 插件的一部分:
<database>
<name>org.jooq.meta.mysql.MySQLDatabase</name>
<inputSchema>fishes</inputSchema>
<includeExcludeColumns>true</includeExcludeColumns>
<includes>.*</includes>
<excludes>users.type|users.mark</excludes>
</database>
但是,这不起作用。省略 "users.",它会起作用,但随后所有 table 中的列将被忽略,这不是我想要的。
您必须要么完全限定一个对象,要么根本不限定它。所以,写:
<excludes>fishes\.users\.(type|mark)</excludes>