This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openjpa.git
The following commit(s) were added to refs/heads/master by this push:
new 95acfa647 [OPENJPA-2941] Switching H2 DB to v2 (#135)
95acfa647 is described below
commit 95acfa64788b2a1be670233dac95afea51e59c26
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Wed Jul 9 13:44:13 2025 +0700
[OPENJPA-2941] Switching H2 DB to v2 (#135)
---
.../java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java | 3 +--
pom.xml | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git
a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
index 6a16db356..222fb27b2 100644
---
a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
+++
b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
@@ -74,7 +74,6 @@ public class TestJava8TimeTypes extends SingleEMFTestCase {
em.persist(entity2);
em.getTransaction().commit();
em.close();
-
}
public void testReadJava8Types() {
@@ -127,7 +126,7 @@ public class TestJava8TimeTypes extends SingleEMFTestCase {
public void testMaxLocalTime() {
EntityManager em = emf.createEntityManager();
final TypedQuery<LocalTime> qry = em.createQuery("select
max(t.localTimeField) from Java8TimeTypes AS t", LocalTime.class);
- final LocalTime max = qry.getSingleResult();
+ final LocalTime max = qry.getSingleResult().withNano(0);
final LocalTime etalon =
(entity1.getLocalTimeField().compareTo(entity2.getLocalTimeField()) > 0
? entity1.getLocalTimeField() :
entity2.getLocalTimeField()).withNano(0);
assertEquals(etalon, max);
diff --git a/pom.xml b/pom.xml
index 2652dd416..4e562036e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -451,7 +451,7 @@
</property>
</activation>
<properties>
- <h2.version>1.4.200</h2.version>
+ <h2.version>2.3.232</h2.version>
<connection.driver.name>org.h2.Driver</connection.driver.name>
<connection.url>jdbc:h2:./target/database/openjpa-h2-database</connection.url>
<connection.username />