【发布时间】:2020-08-06 07:20:50
【问题描述】:
基于here 提供的答案,我试图让我生成的记录实现多个接口。根据匹配的正则表达式(REGEX_A、REGEX_B 或两者),生成的记录应实现 IFoo 和 IBar 之一或两者。
我确实有一个 gradle-jooq-plugin 配置文件,但它在语义上应该是这样的:
<generator>
<strategy>
<matchers>
<tables>
<table>
<expression>REGEX_A</expression>
<recordImplements>com.test.IFoo</recordImplements>
</table>
<table>
<expression>REGEX_B</expression>
<recordImplements>com.test.IBar</recordImplements>
</table>
</tables>
</matchers>
</strategy>
</generator>
我得到的结果是匹配两个匹配器的记录只会实现 IFoo。这是预期的结果吗?有没有办法只通过匹配器配置来实现我想要的?
【问题讨论】: