I'm currently evaluating jOOQ. And we have problems with creating join statements, like this:
create.select( )
.from( TABLEA, TABLEB)
.where(TABLEA.ID.equal( TABLEB.TABLEA_ID ));
Because of a type mismatch. In the (Oracle 11g) Database TABLEA is NUMBER(22,0), but TABLEB.TABLEA_ID is NUMBER(7,0).
Therefore jOOQ generates for the first property a BigInteger field, but for the latter a Integer field.
So I tried to generate all NUMBER(.*,0) with BigInteger with the following xml:
<forcedTypes>
<forcedType>
<name>DECIMAL_INTEGER</name>
<expression>.*</expression>
<types>NUMBER(.*,0)</types>
</forcedType>
</forcedTypes>
</database>
But this did not work. I still have fields with Integer as type. So what can I do about that, beside changing the table column type?