jooq: 3.9.0
when I try to generate a table, which is named tag that's contained inside the schema named tag. (I know jooq doesn't like this but in the past I'd end up with just a new table named tag_) I get the following error:
[ERROR] /Users/samirfaci/projects/docker/mip-db/target/generated-sources/jooq/biz/neustar/ms/db/schema/legacy/tag/tables/Tag.java:[118,19] error: cannot find symbol
[ERROR] symbol: variable IDENTITY_TAG
location: class Keys
/Users/samirfaci/projects/docker/mip-db/target/generated-sources/jooq/biz/neustar/ms/db/schema/legacy/tag/Keys.java:[41,77] error: cannot find symbol
I think the correct value should be IDENTITY_TAG_ but just thought I'd mention it.
Our work around for now is to do something along these lines:
<strategy>
<matchers>
<tables>
<table>
<!--when the schema and table are the same name, a mismatch with the identity variables for the
tag table occurs, causing the generation to fail. This resolves that-->
<expression>tag.tag</expression>
<tableIdentifier>
<expression>TAG_TABLE</expression>
</tableIdentifier>
</table>
</tables>
</matchers>
</strategy>
Is there a better / recommended way of dealing with these types of collisions?