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.
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.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 " />
5050
5151 <ivy : cachepath organisation =" org.hibernate.tool" module =" hibernate-tools-ant" revision =" ${hibernate.tools.version}"
5252 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
5252<property name =" hibernate-tools.version" value =" 7.1.2.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
@@ -370,4 +370,21 @@ This nested element is ignored.
370370
371371### 2.3 JDBC Configuration
372372
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+
373390## 3. The Hibernate Tools Exporters
Original file line number Diff line number Diff line change @@ -97,13 +97,13 @@ plugins {
9797
9898Also we need to depend on the java library containing the [ H2 database] ( ) drivers.
9999This 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...
104104dependencies {
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
124124dependencies {
125- implementation('com.h2database:h2:2.3.232 ')
125+ implementation('com.h2database:h2:2.4.240 ')
126126}
127127```
128128
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 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.1.1.Final</hibernate-orm .version>
112112 <hsqldb .version>2.6.1</hsqldb .version>
You can’t perform that action at this time.
0 commit comments