inconsistent datetime results in repository methods #2435
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Hello,
I'm using spring data jpa with postgresql. I'm storing times using javas
OffsetDateTime
. I know that underlying type in postgresql truncates date tomicroseconds
and I'm ok with that. However there is difference between results of save vs get.So for example when I do following:
the test fails because
savedSample.businessDate
contains nanoseconds whileloadedSample.businessDate
doesn't contain nanos. Is there any way how we can get the dates from save also truncated to micros?sample project
The text was updated successfully, but these errors were encountered: