My current jooq-codegen-maven configuration maps all tinyint(1) fields to java's boolean values:
<forcedTypes>
<forcedType>
<name>BOOLEAN</name>
<types>(?i:TINYINT)</types>
</forcedType>
</forcedTypes>
Issue is that in some cases DB contains columns marked as tinyint(3) which should not be treated as boolean but some real int. Unfortunately I could not find any examples, docs have something but it didn't really worked for me:
<forcedType>
<name>BOOLEAN</name>
<types>TINYINT\(1\)</types>
</forcedType>