Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SPI to translate column types #7435

Open
lukaseder opened this issue Apr 24, 2018 · 0 comments
Open

Add SPI to translate column types #7435

lukaseder opened this issue Apr 24, 2018 · 0 comments

Comments

@lukaseder
Copy link
Member

lukaseder commented Apr 24, 2018

Until recently, jOOQ's default type mappings were sufficient for most use-cases. For example, a SQL standard (and e.g. SQL Server, PostgreSQL) INT type can be mapped to Oracle NUMBER(10) on write or NUMBER(9) on read, as the latter type can include the entirety of the INT value space. Alternatively, a PostgreSQL TEXT type might be the closest equivalent to Oracle's CLOB

With the parser that was added in jOOQ 3.9, the automatic translation of types may not behave as users expect. It would be good if there was an SPI that allowed for overriding such type translations predictably.

Designing the SPI is non-trivial as it might incur quite some internal changes. Once the requirements for this SPI are more clear, this issue will be updated with more details. In particular, this SPI will need to work together with the Converter and Binding SPIs, as well as with the code generator.


See also:

@lukaseder lukaseder added this to the Version 3.19.0 milestone Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant