File tree Expand file tree Collapse file tree 5 files changed +24
-7
lines changed
examples/5-minute-tutorial/app Expand file tree Collapse file tree 5 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ for the purpose of this short tutorial.
46
46
<project xmlns : ivy =" antlib:org.apache.ivy.ant" >
47
47
48
48
<property name =" hibernate.tools.version" value =" the-hibernate-tools-version-to-use, e.g. 7.1.2.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 " />
50
50
51
51
<ivy : cachepath organisation =" org.hibernate.tool" module =" hibernate-tools-ant" revision =" ${hibernate.tools.version}"
52
52
pathid =" hibernate-tools" inline =" true" />
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ the jdbc driver and for the version information. See an example in the snippet b
52
52
<property name =" hibernate-tools.version" value =" 7.1.2.Final" />
53
53
<property name =" jdbc-driver.org" value =" com.h2database" />
54
54
<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 " />
56
56
```
57
57
58
58
### 1.2 ` <hibernatetool> ` Task Element
@@ -370,4 +370,21 @@ This nested element is ignored.
370
370
371
371
### 2.3 JDBC Configuration
372
372
373
+ The third possibility for configuring the ` <hibernatetool> ` task is to use the ` <jdbcconfiguration> `
374
+ element. ` <jdbcconfiguration> ` is used to perform reverse engineering of a database from a JDBC connection.
375
+ This configuration works by reading the connection properties either from a ` hibernate.cfg.xml ` file or a
376
+ ` hibernate.properties ` .
377
+
378
+ ``` xml
379
+ <target name =" reveng" >
380
+ <hibernatetool destdir =" ..." >
381
+ ...
382
+ <jdbcconfiguration propertyfile =" ..." />
383
+ ...
384
+ </hibernatetool >
385
+ </target >
386
+ ```
387
+
388
+ ### 2.3.1
389
+
373
390
## 3. The Hibernate Tools Exporters
Original file line number Diff line number Diff line change @@ -97,13 +97,13 @@ plugins {
97
97
98
98
Also we need to depend on the java library containing the [ H2 database] ( ) drivers.
99
99
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 ' ` .
101
101
102
102
``` groovy
103
103
...
104
104
dependencies {
105
105
...
106
- implementation 'com.h2database:h2:2.3.232 '
106
+ implementation 'com.h2database:h2:2.4.240 '
107
107
}
108
108
...
109
109
```
@@ -122,7 +122,7 @@ repositories {
122
122
}
123
123
124
124
dependencies {
125
- implementation('com.h2database:h2:2.3.232 ')
125
+ implementation('com.h2database:h2:2.4.240 ')
126
126
}
127
127
```
128
128
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ dependencies {
24
24
25
25
// This dependency is used by the application.
26
26
implementation libs. guava
27
- implementation ' com.h2database:h2:2.3.232 '
27
+ implementation ' com.h2database:h2:2.4.240 '
28
28
}
29
29
30
30
// Apply a specific Java toolchain to ease working on different environments.
Original file line number Diff line number Diff line change 106
106
<commons-collections .version>4.5.0</commons-collections .version>
107
107
<freemarker .version>2.3.34</freemarker .version>
108
108
<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>
110
110
<hibernate-commons-annotations .version>7.0.3.Final</hibernate-commons-annotations .version>
111
111
<hibernate-orm .version>7.1.1.Final</hibernate-orm .version>
112
112
<hsqldb .version>2.6.1</hsqldb .version>
You can’t perform that action at this time.
0 commit comments