[h2] Re: Hibernate 5.6.9 @Version annotation requires precision 9 for timestamp

2023-01-05 Thread Michael Brizic
Hi Evgenij, Thanks for the explanation, very helpful! Wondering if you could would know any additional details ... With respect to "Hibernate reads it back it gets a rounded value instead of expected original one" do you have any further details as to exactly HOW this fails if for example, the

[h2] Hibernate 5.6.9 @Version annotation requires precision 9 for timestamp

2023-01-05 Thread Michael Brizic
Does anyone know why using H2 on Java 15+ and Spring/Hibernate with entitys that are versioned using timestamps require a precision of 9 instead of 6? We upgraded our web app to use Java 17. Since Java 15+ the JDK/JRE support nanosecond precision for datetime objects. Our integration tests use H

[h2] Configure timestamp precision

2022-08-02 Thread Michael Brizic
We have a Java object annotated with @Column (columnDefinition = "DATETIME(6)") and this has usually worked fine with our production app using MySQL. However, we are upgrading to Java 17, and now notice that on Linux-based OS that nanoseconds precision is default. In addition to this, we are us