I disagree with Vlad Mihalcea's suggestion on the dev list in regards to using the JDBC metadata. Again I don't think it is the right idea to be changing Dialects that people have been using a long time in this regards. I am ok with changing the Oracle12cDialect mainly because it is new and because we should have done this change up front there. You know you can actually influence this yourself right? There are 2 different ways in fact:
- Implement a custom Dialect (as you already mentioned)
- Override the BasicTypeRegistry (this is actually the crux of what my proposed change is, driven from the Dialect)
Of course my proposed change does not help the specific use case you gave (explicit type declaration). |