Skip to content

Commit

Permalink
Merge pull request #6015 from slub/h2-upgrade
Browse files Browse the repository at this point in the history
H2 upgrade
  • Loading branch information
solth authored Mar 28, 2024
2 parents 3d4fd47 + 8e032c7 commit c72259c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 3 additions & 1 deletion Kitodo-DataManagement/src/test/resources/hibernate.cfg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@

<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password"/>
<property name="hibernate.connection.url">jdbc:h2:mem:test</property>
<property name="hibernate.connection.url">jdbc:h2:mem:test;MODE=MariaDB;DATABASE_TO_LOWER=TRUE;CASE_INSENSITIVE_IDENTIFIERS=TRUE;NON_KEYWORDS=USER</property>
<property name="hibernate.connection.autoReconnect">true</property>
<property name="hibernate.connection.autoReconnectForPools">true</property>
<property name="hibernate.globally_quoted_identifiers">true</property>
<property name="hibernate.globally_quoted_identifiers_skip_column_definitions">true</property>

<!-- connection pool -->
<property name="hibernate.c3p0.max_size">5000</property>
Expand Down
4 changes: 3 additions & 1 deletion Kitodo/src/test/resources/hibernate.cfg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@

<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password"/>
<property name="hibernate.connection.url">jdbc:h2:mem:test</property>
<property name="hibernate.connection.url">jdbc:h2:mem:test;MODE=MariaDB;DATABASE_TO_LOWER=TRUE;CASE_INSENSITIVE_IDENTIFIERS=TRUE;NON_KEYWORDS=USER</property>
<property name="hibernate.connection.autoReconnect">true</property>
<property name="hibernate.connection.autoReconnectForPools">true</property>
<property name="hibernate.globally_quoted_identifiers">true</property>
<property name="hibernate.globally_quoted_identifiers_skip_column_definitions">true</property>

<!-- connection pool -->
<property name="hibernate.c3p0.max_size">5000</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@
<!-- SQL - Settings -->
<property name="dialect">org.hibernate.dialect.H2Dialect</property>
<property name="hibernate.connection.driver_class">org.h2.Driver</property>

<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password"/>
<property name="hibernate.connection.url">
jdbc:h2:tcp://localhost/mem:test;DB_CLOSE_DELAY=-1
</property>
<property name="hibernate.connection.url">jdbc:h2:tcp://localhost/mem:test;DB_CLOSE_DELAY=-1;MODE=MariaDB;DATABASE_TO_LOWER=TRUE;CASE_INSENSITIVE_IDENTIFIERS=TRUE;NON_KEYWORDS=USER</property>
<property name="hibernate.connection.autoReconnect">true</property>
<property name="hibernate.connection.autoReconnectForPools">true</property>
<property name="hibernate.globally_quoted_identifiers">true</property>
<property name="hibernate.globally_quoted_identifiers_skip_column_definitions">true</property>

<!-- connection pool -->
<property name="hibernate.c3p0.max_size">5000</property>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<tomcat.baseversion>9</tomcat.baseversion>
<tomcat.version>9.0.65</tomcat.version>
<awaitility.version>4.0.1</awaitility.version>
<com.h2database.h2.version>1.4.199</com.h2database.h2.version>
<com.h2database.h2.version>2.2.224</com.h2database.h2.version>
<commons-codec.version>1.15</commons-codec.version>
<commons-configuration.version>1.10</commons-configuration.version>
<commons-io.version>2.11.0</commons-io.version>
Expand Down

0 comments on commit c72259c

Please sign in to comment.