-
Notifications
You must be signed in to change notification settings - Fork 372
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
Support for Range of OffsetDateTime #96
Comments
Where did you get this from? There is no default Java mapping between PostgreSQL column types and Java types.
That's also not true. The
Which is already the case for a |
It's specified for the PostgreSQL JDBC driver (https://jdbc.postgresql.org/documentation/head/8-date-time.html). 'Default' was definitely too broad of a phrasing.
I meant to specify Range. Funny that I forgot that of all things. |
In that case, you should provide a Pull Request with a fix. I'll review it once you are done. |
I was trying to figure out how to replace the After few hours of digging it seems there is no way to backward compatible change. If there way to obtain the generic type from user defined entity, we can check whether user binds |
You can add a Configuration and leave the default as-is. But if you specify the config, you switch to using OffsetDateTime instead. Check out the JSON Types for more details as they have some configs that can be applied. |
Currently only Range is mapped to tstzrange.
However, the default java type for timestamptz is OffsetDateTime rather than LocalDateTime - which seems adequate since timestamptz doesn't actually carry a time zone, but an offset.
Hence, I'd expect Range to be mapped to tstzrange.
The text was updated successfully, but these errors were encountered: