Skip to content

Commit cecddc3

Browse files
committed
HBX-3131: Update the H2 dependency to version 2.4.240
Signed-off-by: Koen Aers <[email protected]>
1 parent 522100a commit cecddc3

File tree

5 files changed

+25
-8
lines changed

5 files changed

+25
-8
lines changed

ant/docs/5-minute-tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ for the purpose of this short tutorial.
4646
<project xmlns:ivy="antlib:org.apache.ivy.ant">
4747

4848
<property name="hibernate.tools.version" value="the-hibernate-tools-version-to-use, e.g. 7.0.11.Final"/>
49-
<property name="h2.version" value="the-h2-version-to-use, e.g. 2.3.232"/>
49+
<property name="h2.version" value="the-h2-version-to-use, e.g. 2.4.240"/>
5050

5151
<ivy:cachepath organisation="org.hibernate.tool" module="hibernate-tools-ant" revision="${hibernate.tools.version}"
5252
pathid="hibernate-tools" inline="true"/>
@@ -121,4 +121,4 @@ With all the previous elements in place, generating the Java classes from the Sa
121121
becomes as simple as issuing `ant reveng` in a command line window.
122122

123123
Congratulations! You have succesfully created Java classes for the Sakila database... Now it's
124-
probably time to dive somewhat deeper in the available functionality.
124+
probably time to dive somewhat deeper in the available functionality.

ant/docs/reference-guide.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ the jdbc driver and for the version information. See an example in the snippet b
5252
<property name="hibernate-tools.version" value="7.0.11.Final"/>
5353
<property name="jdbc-driver.org" value="com.h2database"/>
5454
<property name="jdbc-driver.module" value="h2"/>
55-
<property name="jdbc-driver.version" value="2.3.232"/>
55+
<property name="jdbc-driver.version" value="2.4.240"/>
5656
```
5757

5858
### 1.2 `<hibernatetool>` Task Element
@@ -317,4 +317,21 @@ specified by the `<fileset>` to avoid duplicate import exceptions.
317317

318318
### 2.3 JDBC Configuration
319319

320+
The third possibility for configuring the `<hibernatetool>` task is to use the `<jdbcconfiguration>`
321+
element. `<jdbcconfiguration>` is used to perform reverse engineering of a database from a JDBC connection.
322+
This configuration works by reading the connection properties either from a `hibernate.cfg.xml` file or a
323+
`hibernate.properties`.
324+
325+
```xml
326+
<target name="reveng">
327+
<hibernatetool destdir="...">
328+
...
329+
<jdbcconfiguration propertyfile="..."/>
330+
...
331+
</hibernatetool>
332+
</target>
333+
```
334+
335+
### 2.3.1
336+
320337
## 3. The Hibernate Tools Exporters

gradle/docs/5-minute-tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ plugins {
9797

9898
Also we need to depend on the java library containing the [H2 database]() drivers.
9999
This is done in the `dependencies` section of the `gradle.build` file,
100-
to which we add `implementation 'com.h2database:h2:2.3.232'`.
100+
to which we add `implementation 'com.h2database:h2:2.4.240'`.
101101

102102
```groovy
103103
...
104104
dependencies {
105105
...
106-
implementation 'com.h2database:h2:2.3.232'
106+
implementation 'com.h2database:h2:2.4.240'
107107
}
108108
...
109109
```
@@ -122,7 +122,7 @@ repositories {
122122
}
123123
124124
dependencies {
125-
implementation('com.h2database:h2:2.3.232')
125+
implementation('com.h2database:h2:2.4.240')
126126
}
127127
```
128128

gradle/docs/examples/5-minute-tutorial/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies {
2424

2525
// This dependency is used by the application.
2626
implementation libs.guava
27-
implementation 'com.h2database:h2:2.3.232'
27+
implementation 'com.h2database:h2:2.4.240'
2828
}
2929

3030
// Apply a specific Java toolchain to ease working on different environments.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<commons-collections.version>4.5.0</commons-collections.version>
107107
<freemarker.version>2.3.34</freemarker.version>
108108
<google-java-format.version>1.27.0</google-java-format.version>
109-
<h2.version>2.3.232</h2.version>
109+
<h2.version>2.4.240</h2.version>
110110
<hibernate-commons-annotations.version>7.0.3.Final</hibernate-commons-annotations.version>
111111
<hibernate-orm.version>7.0.10.Final</hibernate-orm.version>
112112
<hsqldb.version>2.6.1</hsqldb.version>

0 commit comments

Comments
 (0)