The most straightforward way would be to use data type rewriting:
http://www.jooq.org/doc/latest/manual/code-generation/data-type-rewrites
<forcedType>
<!-- Specify any data type from org.jooq.impl.SQLDataType -->
<name>BOOLEAN</name>
<!-- Add a Java regular expression matching fully-qualified
columns. Use the pipe to separate several expressions.
If provided, both "expressions" and "types" must match. -->
<expression>.*\.IS_VALID</expression>
<!-- Add a Java regular expression matching data types to be
forced to have this type.
Data types may be reported by your database as:
- NUMBER
- NUMBER(5)
- NUMBER(5, 2)
- any other form.
It is thus recommended to use defensive regexes for types.
If provided, both "expressions" and "types" must match. -->
<types>.*</types>
</forcedType>
Or, in your case:
<forcedType> <name>BIGINT</name>
<expression>.*</expression>
<types>NUMBER(19)|NUMBER(19,0)</types>
</forcedType>
I've put both versions, with or without scale - I'm not sure right now
which one will work.
Let me know if this works for you.
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.