Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ant/docs/5-minute-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ for the purpose of this short tutorial.
<project xmlns:ivy="antlib:org.apache.ivy.ant">

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

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

Congratulations! You have succesfully created Java classes for the Sakila database... Now it's
probably time to dive somewhat deeper in the available functionality.
probably time to dive somewhat deeper in the available functionality.
19 changes: 18 additions & 1 deletion ant/docs/reference-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ the jdbc driver and for the version information. See an example in the snippet b
<property name="hibernate-tools.version" value="7.0.11.Final"/>
<property name="jdbc-driver.org" value="com.h2database"/>
<property name="jdbc-driver.module" value="h2"/>
<property name="jdbc-driver.version" value="2.3.232"/>
<property name="jdbc-driver.version" value="2.4.240"/>
```

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

### 2.3 JDBC Configuration

The third possibility for configuring the `<hibernatetool>` task is to use the `<jdbcconfiguration>`
element. `<jdbcconfiguration>` is used to perform reverse engineering of a database from a JDBC connection.
This configuration works by reading the connection properties either from a `hibernate.cfg.xml` file or a
`hibernate.properties`.

```xml
<target name="reveng">
<hibernatetool destdir="...">
...
<jdbcconfiguration propertyfile="..."/>
...
</hibernatetool>
</target>
```

### 2.3.1

## 3. The Hibernate Tools Exporters
6 changes: 3 additions & 3 deletions gradle/docs/5-minute-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ plugins {

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

```groovy
...
dependencies {
...
implementation 'com.h2database:h2:2.3.232'
implementation 'com.h2database:h2:2.4.240'
}
...
```
Expand All @@ -122,7 +122,7 @@ repositories {
}

dependencies {
implementation('com.h2database:h2:2.3.232')
implementation('com.h2database:h2:2.4.240')
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle/docs/examples/5-minute-tutorial/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {

// This dependency is used by the application.
implementation libs.guava
implementation 'com.h2database:h2:2.3.232'
implementation 'com.h2database:h2:2.4.240'
}

// Apply a specific Java toolchain to ease working on different environments.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<commons-collections.version>4.5.0</commons-collections.version>
<freemarker.version>2.3.34</freemarker.version>
<google-java-format.version>1.27.0</google-java-format.version>
<h2.version>2.3.232</h2.version>
<h2.version>2.4.240</h2.version>
<hibernate-commons-annotations.version>7.0.3.Final</hibernate-commons-annotations.version>
<hibernate-orm.version>7.0.10.Final</hibernate-orm.version>
<hsqldb.version>2.6.1</hsqldb.version>
Expand Down