I am using H2 in-memory database in Spring integration test.
I have following column on my entity
@Column(nullable = false)
private LocalDateTime lastUpdateDateTime;
However I noticed some problems in H2, sometimes it truncates nanoseconds part eg:
Saved datetime: 2020-07-02T13:36:40.459145400
After few moments 2020-07-02T13:36:40.459145
It seems that H2 is not able to store nanoseconds and just round up nanoseconds part.
My integration tests cannot pass because of this inconsistency. Could You please help ?