Hello,
There is an undocumented feature that allows you to override the data type
jOOQ generates on a per-column basis. I've recently answered a similar
question on Stack Overflow:
http://stackoverflow.com/a/16690198/521799
Essentially, you can force a DataType upon all columns matching a regular
expression as such:
<forcedType>
<name>NUMERIC</name>
<expressions>YOUR_COLUMN_MATCHING_EXPRESSION_HERE</expressions></forcedType>
The content in <name/> has to be any type from SQLDataType. Let me know if
this works for you
Cheers
Lukas
2013/5/24 venkatesha murthy <[email protected]>
> Hi
>
> Please help me on how i can a force a perticular data type in java code
> generated for a column
>
> For ex: if the db is oracle 11g and column is COL_X NUMBER(8);
> if i need to interpret this as BigDecimal always. {We my change the
> precision to 20 or something later nd so i dont want to keep changin the
> calling code etc}
>
> thanks
> Murthy
>
> --
> 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/groups/opt_out.
>
>
>
--
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/groups/opt_out.