Skip to content

Conversation

@schauder
Copy link
Contributor

The standard JSR 310 converters are no longer used for conversions between java.util.Date and java.time.*.
New converters based converting to/from Timestamp are used.

This preserves the precision because both the java.time.* API and Timestamp have nanosecond precision, while java.util.Date has not.

This is a rerun of #254 with tests for all databases included 🤦‍♂️.

schauder and others added 4 commits December 10, 2020 11:05
The standard JSR 310 converters are no longer used for conversions between java.util.Date and java.time.*.
New converters based converting to/from Timestamp are used.

This preserves the precision because both the java.time.* API and Timestamp have nanosecond precision, while java.util.Date has not.

Original pull request: #254.
Make Jsr310TimestampBasedConverters package-private. Introduce convenience constructors to improve external configuration of JdbcCustomConversions.

Original pull request: #254.
Adds SQL scripts for all databases.
Separates tests for all databases vs. those that actually support nanosecond precision.
schauder added a commit that referenced this pull request Dec 11, 2020
Adds SQL scripts for all databases.
Separates tests for all databases vs. those that actually support nanosecond precision.

Original pull request: #255.
schauder added a commit that referenced this pull request Dec 11, 2020
Adds SQL scripts for all databases.
Separates tests for all databases vs. those that actually support nanosecond precision.

Original pull request: #255.
schauder added a commit that referenced this pull request Dec 11, 2020
Adds SQL scripts for all databases.
Separates tests for all databases vs. those that actually support nanosecond precision.

Original pull request: #255.
@schauder
Copy link
Contributor Author

This is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants