diff --git a/_includes/v19.2/app/hibernate-basic-sample/build.gradle b/_includes/v19.2/app/hibernate-basic-sample/build.gradle
index 36f33d73fe6..16fa0710c8d 100644
--- a/_includes/v19.2/app/hibernate-basic-sample/build.gradle
+++ b/_includes/v19.2/app/hibernate-basic-sample/build.gradle
@@ -11,6 +11,6 @@ repositories {
}
dependencies {
- compile 'org.hibernate:hibernate-core:5.2.4.Final'
- compile 'org.postgresql:postgresql:42.2.2.jre7'
+ implementation 'org.hibernate:hibernate-core:5.4.19.Final'
+ implementation 'org.postgresql:postgresql:42.2.14'
}
diff --git a/_includes/v19.2/app/hibernate-basic-sample/hibernate-basic-sample.tgz b/_includes/v19.2/app/hibernate-basic-sample/hibernate-basic-sample.tgz
index 3e729bf439e..70f18a1a3bc 100644
Binary files a/_includes/v19.2/app/hibernate-basic-sample/hibernate-basic-sample.tgz and b/_includes/v19.2/app/hibernate-basic-sample/hibernate-basic-sample.tgz differ
diff --git a/_includes/v19.2/app/hibernate-basic-sample/hibernate.cfg.xml b/_includes/v19.2/app/hibernate-basic-sample/hibernate.cfg.xml
index 454a4950ad0..45ac85886b0 100644
--- a/_includes/v19.2/app/hibernate-basic-sample/hibernate.cfg.xml
+++ b/_includes/v19.2/app/hibernate-basic-sample/hibernate.cfg.xml
@@ -7,7 +7,7 @@
org.postgresql.Driver
- org.hibernate.dialect.PostgreSQL95Dialect
+ org.hibernate.dialect.CockroachDB192Dialect
maxroach
diff --git a/_includes/v19.2/app/insecure/hibernate-basic-sample/build.gradle b/_includes/v19.2/app/insecure/hibernate-basic-sample/build.gradle
index 36f33d73fe6..16fa0710c8d 100644
--- a/_includes/v19.2/app/insecure/hibernate-basic-sample/build.gradle
+++ b/_includes/v19.2/app/insecure/hibernate-basic-sample/build.gradle
@@ -11,6 +11,6 @@ repositories {
}
dependencies {
- compile 'org.hibernate:hibernate-core:5.2.4.Final'
- compile 'org.postgresql:postgresql:42.2.2.jre7'
+ implementation 'org.hibernate:hibernate-core:5.4.19.Final'
+ implementation 'org.postgresql:postgresql:42.2.14'
}
diff --git a/_includes/v19.2/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz b/_includes/v19.2/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz
index 0ef2d046434..cd971543468 100644
Binary files a/_includes/v19.2/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz and b/_includes/v19.2/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz differ
diff --git a/_includes/v19.2/app/insecure/hibernate-basic-sample/hibernate.cfg.xml b/_includes/v19.2/app/insecure/hibernate-basic-sample/hibernate.cfg.xml
index d518988f263..d8656021ac8 100644
--- a/_includes/v19.2/app/insecure/hibernate-basic-sample/hibernate.cfg.xml
+++ b/_includes/v19.2/app/insecure/hibernate-basic-sample/hibernate.cfg.xml
@@ -6,7 +6,7 @@
org.postgresql.Driver
- org.hibernate.dialect.PostgreSQL95Dialect
+ org.hibernate.dialect.CockroachDB192Dialect
jdbc:postgresql://127.0.0.1:26257/bank?sslmode=disable
maxroach
diff --git a/_includes/v20.1/app/hibernate-basic-sample/build.gradle b/_includes/v20.1/app/hibernate-basic-sample/build.gradle
index 36f33d73fe6..16fa0710c8d 100644
--- a/_includes/v20.1/app/hibernate-basic-sample/build.gradle
+++ b/_includes/v20.1/app/hibernate-basic-sample/build.gradle
@@ -11,6 +11,6 @@ repositories {
}
dependencies {
- compile 'org.hibernate:hibernate-core:5.2.4.Final'
- compile 'org.postgresql:postgresql:42.2.2.jre7'
+ implementation 'org.hibernate:hibernate-core:5.4.19.Final'
+ implementation 'org.postgresql:postgresql:42.2.14'
}
diff --git a/_includes/v20.1/app/hibernate-basic-sample/hibernate-basic-sample.tgz b/_includes/v20.1/app/hibernate-basic-sample/hibernate-basic-sample.tgz
index 3e729bf439e..04e17e27e22 100644
Binary files a/_includes/v20.1/app/hibernate-basic-sample/hibernate-basic-sample.tgz and b/_includes/v20.1/app/hibernate-basic-sample/hibernate-basic-sample.tgz differ
diff --git a/_includes/v20.1/app/hibernate-basic-sample/hibernate.cfg.xml b/_includes/v20.1/app/hibernate-basic-sample/hibernate.cfg.xml
index 454a4950ad0..f3b20936d2e 100644
--- a/_includes/v20.1/app/hibernate-basic-sample/hibernate.cfg.xml
+++ b/_includes/v20.1/app/hibernate-basic-sample/hibernate.cfg.xml
@@ -7,7 +7,7 @@
org.postgresql.Driver
- org.hibernate.dialect.PostgreSQL95Dialect
+ org.hibernate.dialect.CockroachDB201Dialect
maxroach
diff --git a/_includes/v20.1/app/insecure/hibernate-basic-sample/build.gradle b/_includes/v20.1/app/insecure/hibernate-basic-sample/build.gradle
index 36f33d73fe6..16fa0710c8d 100644
--- a/_includes/v20.1/app/insecure/hibernate-basic-sample/build.gradle
+++ b/_includes/v20.1/app/insecure/hibernate-basic-sample/build.gradle
@@ -11,6 +11,6 @@ repositories {
}
dependencies {
- compile 'org.hibernate:hibernate-core:5.2.4.Final'
- compile 'org.postgresql:postgresql:42.2.2.jre7'
+ implementation 'org.hibernate:hibernate-core:5.4.19.Final'
+ implementation 'org.postgresql:postgresql:42.2.14'
}
diff --git a/_includes/v20.1/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz b/_includes/v20.1/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz
index 8205b379229..50085afe06e 100644
Binary files a/_includes/v20.1/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz and b/_includes/v20.1/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz differ
diff --git a/_includes/v20.1/app/insecure/hibernate-basic-sample/hibernate.cfg.xml b/_includes/v20.1/app/insecure/hibernate-basic-sample/hibernate.cfg.xml
index ad27c7d746c..db3d396d4c9 100644
--- a/_includes/v20.1/app/insecure/hibernate-basic-sample/hibernate.cfg.xml
+++ b/_includes/v20.1/app/insecure/hibernate-basic-sample/hibernate.cfg.xml
@@ -6,7 +6,7 @@
org.postgresql.Driver
- org.hibernate.dialect.PostgreSQL95Dialect
+ org.hibernate.dialect.CockroachDB201Dialect
jdbc:postgresql://127.0.0.1:26257/bank?sslmode=disable
maxroach
diff --git a/_includes/v20.1/misc/tooling.md b/_includes/v20.1/misc/tooling.md
index 9a34eb620e5..1bfd99a1efe 100644
--- a/_includes/v20.1/misc/tooling.md
+++ b/_includes/v20.1/misc/tooling.md
@@ -28,7 +28,7 @@ If you encounter problems, please [open an issue](https://github.com/cockroachdb
| Language | ORM | Recommended version | Support level |
|----------+-----+---------------------+---------------|
| Go | [GORM](build-a-go-app-with-cockroachdb-gorm.html) | [1.9.11](https://github.com/jinzhu/gorm/releases) | Full |
-| Java | [Hibernate](build-a-java-app-with-cockroachdb-hibernate.html)
[jOOQ](build-a-java-app-with-cockroachdb-jooq.html)
[MyBatis](build-a-spring-app-with-cockroachdb-mybatis.html) | [5.4](https://hibernate.org/orm/releases/)
[3.13.2](https://www.jooq.org/download/versions) (must be 3.13.0 or higher)
[3.5.5 and higher](https://mybatis.org/mybatis-3/) | Full
Full
Full |
+| Java | [Hibernate](build-a-java-app-with-cockroachdb-hibernate.html)
[jOOQ](build-a-java-app-with-cockroachdb-jooq.html)
[MyBatis](build-a-spring-app-with-cockroachdb-mybatis.html) | [5.4.19](https://hibernate.org/orm/releases/)
[3.13.2](https://www.jooq.org/download/versions) (must be 3.13.0 or higher)
[3.5.5 and higher](https://mybatis.org/mybatis-3/) | Full
Full |
| Node.js | [Sequelize](build-a-nodejs-app-with-cockroachdb-sequelize.html) | [sequelize 5.21.9](https://www.npmjs.com/package/sequelize)
[sequelize-cockroachdb 1.1.0](https://www.npmjs.com/package/sequelize-cockroachdb) | Beta |
| Ruby | [ActiveRecord](build-a-ruby-app-with-cockroachdb-activerecord.html) | [activerecord 5.2](https://rubygems.org/gems/activerecord)
[activerecord-cockroachdb-adpater 5.2.0](https://rubygems.org/gems/activerecord-cockroachdb-adapter) | Full (v20.1 and later) |
| Python | [Django](build-a-python-app-with-cockroachdb-django.html)
[peewee](http://docs.peewee-orm.com/en/latest/peewee/playhouse.html#cockroach-database)
[PonyORM](build-a-python-app-with-cockroachdb-pony.html)
[SQLAlchemy](build-a-python-app-with-cockroachdb-sqlalchemy.html) | [Django 3.0.6](https://pypi.org/project/Django/)
[django-cockroachdb 3.0.1](https://pypi.org/project/django-cockroachdb/)
[3.13.3](https://pypi.org/project/peewee/)
[0.7.13](https://pypi.org/project/pony/)
[SQLAlchemy 1.3.17](https://pypi.org/project/SQLAlchemy/)
[sqlalchemy-cockroachdb 1.3.0](https://pypi.org/project/sqlalchemy-cockroachdb/) | Full
Full
Full
Full |
diff --git a/_includes/v20.2/app/hibernate-basic-sample/build.gradle b/_includes/v20.2/app/hibernate-basic-sample/build.gradle
index 36f33d73fe6..16fa0710c8d 100644
--- a/_includes/v20.2/app/hibernate-basic-sample/build.gradle
+++ b/_includes/v20.2/app/hibernate-basic-sample/build.gradle
@@ -11,6 +11,6 @@ repositories {
}
dependencies {
- compile 'org.hibernate:hibernate-core:5.2.4.Final'
- compile 'org.postgresql:postgresql:42.2.2.jre7'
+ implementation 'org.hibernate:hibernate-core:5.4.19.Final'
+ implementation 'org.postgresql:postgresql:42.2.14'
}
diff --git a/_includes/v20.2/app/hibernate-basic-sample/hibernate-basic-sample.tgz b/_includes/v20.2/app/hibernate-basic-sample/hibernate-basic-sample.tgz
index 3e729bf439e..04e17e27e22 100644
Binary files a/_includes/v20.2/app/hibernate-basic-sample/hibernate-basic-sample.tgz and b/_includes/v20.2/app/hibernate-basic-sample/hibernate-basic-sample.tgz differ
diff --git a/_includes/v20.2/app/hibernate-basic-sample/hibernate.cfg.xml b/_includes/v20.2/app/hibernate-basic-sample/hibernate.cfg.xml
index 454a4950ad0..f3b20936d2e 100644
--- a/_includes/v20.2/app/hibernate-basic-sample/hibernate.cfg.xml
+++ b/_includes/v20.2/app/hibernate-basic-sample/hibernate.cfg.xml
@@ -7,7 +7,7 @@
org.postgresql.Driver
- org.hibernate.dialect.PostgreSQL95Dialect
+ org.hibernate.dialect.CockroachDB201Dialect
maxroach
diff --git a/_includes/v20.2/app/insecure/hibernate-basic-sample/build.gradle b/_includes/v20.2/app/insecure/hibernate-basic-sample/build.gradle
index 36f33d73fe6..16fa0710c8d 100644
--- a/_includes/v20.2/app/insecure/hibernate-basic-sample/build.gradle
+++ b/_includes/v20.2/app/insecure/hibernate-basic-sample/build.gradle
@@ -11,6 +11,6 @@ repositories {
}
dependencies {
- compile 'org.hibernate:hibernate-core:5.2.4.Final'
- compile 'org.postgresql:postgresql:42.2.2.jre7'
+ implementation 'org.hibernate:hibernate-core:5.4.19.Final'
+ implementation 'org.postgresql:postgresql:42.2.14'
}
diff --git a/_includes/v20.2/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz b/_includes/v20.2/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz
index 8205b379229..50085afe06e 100644
Binary files a/_includes/v20.2/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz and b/_includes/v20.2/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz differ
diff --git a/_includes/v20.2/app/insecure/hibernate-basic-sample/hibernate.cfg.xml b/_includes/v20.2/app/insecure/hibernate-basic-sample/hibernate.cfg.xml
index ad27c7d746c..db3d396d4c9 100644
--- a/_includes/v20.2/app/insecure/hibernate-basic-sample/hibernate.cfg.xml
+++ b/_includes/v20.2/app/insecure/hibernate-basic-sample/hibernate.cfg.xml
@@ -6,7 +6,7 @@
org.postgresql.Driver
- org.hibernate.dialect.PostgreSQL95Dialect
+ org.hibernate.dialect.CockroachDB201Dialect
jdbc:postgresql://127.0.0.1:26257/bank?sslmode=disable
maxroach
diff --git a/_includes/v20.2/misc/tooling.md b/_includes/v20.2/misc/tooling.md
index ce304a382a7..39b7d85eacd 100644
--- a/_includes/v20.2/misc/tooling.md
+++ b/_includes/v20.2/misc/tooling.md
@@ -15,7 +15,7 @@ If you encounter problems, please [open an issue](https://github.com/cockroachdb
| C++ | [libpqxx](build-a-c++-app-with-cockroachdb.html) | [7.1.1](https://github.com/jtv/libpqxx/releases) (Windows)
[4.0.1](https://github.com/jtv/libpqxx/releases) or higher (macOS) | Beta |
| C# (.NET) | [Npgsql](build-a-csharp-app-with-cockroachdb.html) | [4.1.3.1](https://www.nuget.org/packages/Npgsql/) | Beta |
| Clojure | [java.jdbc](build-a-clojure-app-with-cockroachdb.html) | [0.7.11](https://search.maven.org/search?q=g:org.clojure%20AND%20a:java.jdbc) | Beta |
-| Go | [pgx](https://godoc.org/github.com/jackc/pgx)
[pq](build-a-go-app-with-cockroachdb.html) | [4.6.0](https://github.com/jackc/pgx/releases)
[1.5.2](https://github.com/lib/pq/releases) | Full
Full |
+| Go | [pgx](build-a-go-app-with-cockroachdb.html)
[pq](build-a-go-app-with-cockroachdb-pq.html) | [4.6.0](https://github.com/jackc/pgx/releases)
[1.5.2](https://github.com/lib/pq/releases) | Full
Full |
| Java | [JDBC](build-a-java-app-with-cockroachdb.html) | [42.2.12](https://jdbc.postgresql.org/download.html#current) | Full |
| Node.js | [pg](build-a-nodejs-app-with-cockroachdb.html) | [8.2.1](https://www.npmjs.com/package/pg) | Beta |
| PHP | [php-pgsql](build-a-php-app-with-cockroachdb.html) | [PHP 7.4.6](https://www.php.net/downloads) | Beta |
@@ -28,7 +28,7 @@ If you encounter problems, please [open an issue](https://github.com/cockroachdb
| Language | ORM | Recommended version | Support level |
|----------+-----+---------------------+---------------|
| Go | [GORM](build-a-go-app-with-cockroachdb-gorm.html) | [1.9.11](https://github.com/jinzhu/gorm/releases) | Full |
-| Java | [Hibernate](build-a-java-app-with-cockroachdb-hibernate.html)
[jOOQ](build-a-java-app-with-cockroachdb-jooq.html)
[MyBatis](build-a-spring-app-with-cockroachdb-mybatis.html) | [5.4](https://hibernate.org/orm/releases/)
[3.13.2](https://www.jooq.org/download/versions) (must be 3.13.0 or higher)
[3.5.5 and higher](https://mybatis.org/mybatis-3/) | Full
Full
Full |
+| Java | [Hibernate](build-a-java-app-with-cockroachdb-hibernate.html)
[jOOQ](build-a-java-app-with-cockroachdb-jooq.html)
[MyBatis](build-a-spring-app-with-cockroachdb-mybatis.html) | [5.4.19](https://hibernate.org/orm/releases/)
[3.13.2](https://www.jooq.org/download/versions) (must be 3.13.0 or higher)
[3.5.5 and higher](https://mybatis.org/mybatis-3/) | Full
Full |
| Node.js | [Sequelize](build-a-nodejs-app-with-cockroachdb-sequelize.html) | [sequelize 5.21.9](https://www.npmjs.com/package/sequelize)
[sequelize-cockroachdb 1.1.0](https://www.npmjs.com/package/sequelize-cockroachdb) | Beta |
| Ruby | [ActiveRecord](build-a-ruby-app-with-cockroachdb-activerecord.html) | [activerecord 5.2](https://rubygems.org/gems/activerecord)
[activerecord-cockroachdb-adpater 5.2.0](https://rubygems.org/gems/activerecord-cockroachdb-adapter) | Full |
| Python | [Django](build-a-python-app-with-cockroachdb-django.html)
[peewee](http://docs.peewee-orm.com/en/latest/peewee/playhouse.html#cockroach-database)
[PonyORM](build-a-python-app-with-cockroachdb-pony.html)
[SQLAlchemy](build-a-python-app-with-cockroachdb-sqlalchemy.html) | [Django 3.0.6](https://pypi.org/project/Django/)
[django-cockroachdb 3.0.1](https://pypi.org/project/django-cockroachdb/)
[3.13.3](https://pypi.org/project/peewee/)
[0.7.13](https://pypi.org/project/pony/)
[SQLAlchemy 1.3.17](https://pypi.org/project/SQLAlchemy/)
[sqlalchemy-cockroachdb 1.3.0](https://pypi.org/project/sqlalchemy-cockroachdb/) | Full
Full
Full
Full |
diff --git a/v19.2/build-a-java-app-with-cockroachdb-hibernate.md b/v19.2/build-a-java-app-with-cockroachdb-hibernate.md
index 6134b0f2f75..495870b78bd 100644
--- a/v19.2/build-a-java-app-with-cockroachdb-hibernate.md
+++ b/v19.2/build-a-java-app-with-cockroachdb-hibernate.md
@@ -85,6 +85,11 @@ It does all of the above using the practices we recommend for using Hibernate (a
To run it:
1. Download and extract [hibernate-basic-sample.tgz](https://github.com/cockroachdb/docs/raw/master/_includes/{{ page.version.version }}/app/hibernate-basic-sample/hibernate-basic-sample.tgz). The settings in [`hibernate.cfg.xml`](https://github.com/cockroachdb/docs/raw/master/_includes/{{ page.version.version }}/app/hibernate-basic-sample/hibernate.cfg.xml) specify how to connect to the database.
+
+ {{site.data.alerts.callout_info}}
+ The version of the CockroachDB Hibernate dialect in `hibernate.cfg.xml` corresponds to a version of CockroachDB. For more information, see [Install Client Drivers: Hibernate](install-client-drivers.html#hibernate).
+ {{site.data.alerts.end}}
+
2. Compile and run the code using [`build.gradle`](https://github.com/cockroachdb/docs/raw/master/_includes/{{ page.version.version }}/app/hibernate-basic-sample/build.gradle), which will also download the dependencies.
{% include copy-clipboard.html %}
diff --git a/v19.2/install-client-drivers.md b/v19.2/install-client-drivers.md
index 1e90047f4e8..7bfba1a519c 100644
--- a/v19.2/install-client-drivers.md
+++ b/v19.2/install-client-drivers.md
@@ -145,30 +145,33 @@ For a simple but complete "Hello World" example app, see [Build a Java App with
**Support level:** Full
-You can use the [Gradle build tool](https://gradle.org/) to get all dependencies for your application, including Hibernate.
+You can use [Gradle](https://gradle.org/install) or [Maven](https://maven.apache.org/install.html) to get all dependencies for your application, including Hibernate. Only Hibernate versions 5.4.19 and later support the Hibernate CockroachDB dialect.
-To install Gradle on Mac:
+If you are using Gradle, add the following to your `dependencies`:
-{% include copy-clipboard.html %}
-~~~ shell
-$ brew install gradle
+~~~
+implementation 'org.hibernate:hibernate-core:5.4.19.Final'
+implementation 'org.postgresql:postgresql:42.2.14'
~~~
-To install Gradle on a Debian-based Linux distribution like Ubuntu:
+If you are using Maven, add the following to your ``:
-{% include copy-clipboard.html %}
-~~~ shell
-$ apt-get install gradle
+~~~
+
+ org.hibernate
+ hibernate-core
+ 5.4.19.Final
+
+
+ org.postgresql
+ postgresql
+
~~~
-To install Gradle on a Red Hat-based Linux distribution like Fedora:
-{% include copy-clipboard.html %}
-~~~ shell
-$ dnf install gradle
-~~~
+You will also need to specify the CockroachDB dialect in your [Hibernate configuration file](https://www.tutorialspoint.com/hibernate/hibernate_configuration.htm). Versions of the Hibernate CockroachDB dialect correspond to the version of CockroachDB installed on your machine. For example, `org.hibernate.dialect.CockroachDB201Dialect` corresponds to CockroachDB v20.1, and `org.hibernate.dialect.CockroachDB192Dialect` corresponds to CockroachDB v19.2.
-For other ways to install Gradle, see [its official documentation](https://gradle.org/install).
+All dialect versions are forward-compatible (e.g. CockroachDB v20.1 is compatible with `CockroachDB192Dialect`), as long as your application is not affected by any backward-incompatible changes listed in your CockroachDB version's [release notes](../releases/index.html). In the event of a CockroachDB version upgrade, using a previous version of the CockroachDB dialect will not break an application, but, to enable all features available in your version of CockroachDB, we recommend keeping the dialect version in sync with the installed version of CockroachDB.
For a simple but complete "Hello World" example app, see [Build a Java App with CockroachDB and Hibernate](build-a-java-app-with-cockroachdb-hibernate.html).
@@ -176,25 +179,9 @@ For a simple but complete "Hello World" example app, see [Build a Java App with
**Support level:** Full
-You can use the [Maven build tool](https://gradle.org/) to manage application dependencies.
-
-To install Maven on Mac:
-
-{% include copy-clipboard.html %}
-~~~ shell
-$ brew install maven
-~~~
-
-To install Maven on a Debian-based Linux distribution like Ubuntu:
-
-{% include copy-clipboard.html %}
-~~~ shell
-$ apt-get install maven
-~~~
-
-For other ways to install Maven, see [its official documentation](https://maven.apache.org/install.html).
+You can use [Gradle](https://gradle.org/install) or [Maven](https://maven.apache.org/install.html) to get all dependencies for your application, including jOOQ.
-For a simple but complete "Hello World" example app, see [Build a Java App with CockroachDB and jOOQ](build-a-java-app-with-cockroachdb-jooq.html).
+For a simple but complete "Hello World" example app that uses Maven for dependency management, see [Build a Java App with CockroachDB and jOOQ](build-a-java-app-with-cockroachdb-jooq.html).
diff --git a/v20.1/build-a-java-app-with-cockroachdb-hibernate.md b/v20.1/build-a-java-app-with-cockroachdb-hibernate.md
index 6aec557a602..5fcb41a7ebf 100644
--- a/v20.1/build-a-java-app-with-cockroachdb-hibernate.md
+++ b/v20.1/build-a-java-app-with-cockroachdb-hibernate.md
@@ -92,6 +92,11 @@ It does all of the above using the practices we recommend for using Hibernate (a
To run it:
1. Download and extract [hibernate-basic-sample.tgz](https://github.com/cockroachdb/docs/raw/master/_includes/{{ page.version.version }}/app/hibernate-basic-sample/hibernate-basic-sample.tgz). The settings in [`hibernate.cfg.xml`](https://github.com/cockroachdb/docs/raw/master/_includes/{{ page.version.version }}/app/hibernate-basic-sample/hibernate.cfg.xml) specify how to connect to the database.
+
+ {{site.data.alerts.callout_info}}
+ The version of the CockroachDB Hibernate dialect in `hibernate.cfg.xml` corresponds to a version of CockroachDB. For more information, see [Install Client Drivers: Hibernate](install-client-drivers.html#hibernate).
+ {{site.data.alerts.end}}
+
2. Compile and run the code using [`build.gradle`](https://github.com/cockroachdb/docs/raw/master/_includes/{{ page.version.version }}/app/hibernate-basic-sample/build.gradle), which will also download the dependencies.
{% include copy-clipboard.html %}
diff --git a/v20.1/install-client-drivers.md b/v20.1/install-client-drivers.md
index 57be37ded2a..478375e1dbf 100644
--- a/v20.1/install-client-drivers.md
+++ b/v20.1/install-client-drivers.md
@@ -144,56 +144,44 @@ For a simple but complete "Hello World" example app, see [Build a Java App with
**Support level:** Full
-You can use the [Gradle build tool](https://gradle.org/) to get all dependencies for your application, including Hibernate.
+You can use [Gradle](https://gradle.org/install) or [Maven](https://maven.apache.org/install.html) to get all dependencies for your application, including Hibernate. Only Hibernate versions 5.4.19 and later support the Hibernate CockroachDB dialect.
-To install Gradle on Mac:
+If you are using Gradle, add the following to your `dependencies`:
-{% include copy-clipboard.html %}
-~~~ shell
-$ brew install gradle
~~~
-
-To install Gradle on a Debian-based Linux distribution like Ubuntu:
-
-{% include copy-clipboard.html %}
-~~~ shell
-$ apt-get install gradle
+implementation 'org.hibernate:hibernate-core:5.4.19.Final'
+implementation 'org.postgresql:postgresql:42.2.14'
~~~
-To install Gradle on a Red Hat-based Linux distribution like Fedora:
+For a simple but complete "Hello World" example app that uses Gradle for dependency management, see [Build a Java App with CockroachDB and Hibernate](build-a-java-app-with-cockroachdb-hibernate.html).
+
+If you are using Maven, add the following to your ``:
-{% include copy-clipboard.html %}
-~~~ shell
-$ dnf install gradle
~~~
+
+ org.hibernate
+ hibernate-core
+ 5.4.19.Final
+
+
+ org.postgresql
+ postgresql
+
+~~~
+
+For a complete example app that uses Maven for dependency management, see [Build a Spring App with CockroachDB and Spring Data JPA (Hibernate)](build-a-spring-app-with-cockroachdb-jpa.html).
-For other ways to install Gradle, see [its official documentation](https://gradle.org/install).
+You will also need to specify the CockroachDB dialect in your [Hibernate configuration file](https://www.tutorialspoint.com/hibernate/hibernate_configuration.htm). Versions of the Hibernate CockroachDB dialect correspond to the version of CockroachDB installed on your machine. For example, `org.hibernate.dialect.CockroachDB201Dialect` corresponds to CockroachDB v20.1, and `org.hibernate.dialect.CockroachDB192Dialect` corresponds to CockroachDB v19.2.
-For a simple but complete "Hello World" example app, see [Build a Java App with CockroachDB and Hibernate](build-a-java-app-with-cockroachdb-hibernate.html).
+All dialect versions are forward-compatible (e.g. CockroachDB v20.1 is compatible with `CockroachDB192Dialect`), as long as your application is not affected by any backward-incompatible changes listed in your CockroachDB version's [release notes](../releases/index.html). In the event of a CockroachDB version upgrade, using a previous version of the CockroachDB dialect will not break an application, but, to enable all features available in your version of CockroachDB, we recommend keeping the dialect version in sync with the installed version of CockroachDB.
### jOOQ
**Support level:** Full
-You can use the [Maven build tool](https://gradle.org/) to manage application dependencies.
-
-To install Maven on Mac:
-
-{% include copy-clipboard.html %}
-~~~ shell
-$ brew install maven
-~~~
-
-To install Maven on a Debian-based Linux distribution like Ubuntu:
-
-{% include copy-clipboard.html %}
-~~~ shell
-$ apt-get install maven
-~~~
-
-For other ways to install Maven, see [its official documentation](https://maven.apache.org/install.html).
+You can use [Gradle](https://gradle.org/install) or [Maven](https://maven.apache.org/install.html) to get all dependencies for your application, including jOOQ.
-For a simple but complete "Hello World" example app, see [Build a Java App with CockroachDB and jOOQ](build-a-java-app-with-cockroachdb-jooq.html).
+For a simple but complete "Hello World" example app that uses Maven for dependency management, see [Build a Java App with CockroachDB and jOOQ](build-a-java-app-with-cockroachdb-jooq.html).
diff --git a/v20.2/build-a-java-app-with-cockroachdb-hibernate.md b/v20.2/build-a-java-app-with-cockroachdb-hibernate.md
index 657bdd0d069..ff32b9b9ce2 100644
--- a/v20.2/build-a-java-app-with-cockroachdb-hibernate.md
+++ b/v20.2/build-a-java-app-with-cockroachdb-hibernate.md
@@ -88,6 +88,11 @@ It does all of the above using the practices we recommend for using Hibernate (a
To run it:
1. Download and extract [hibernate-basic-sample.tgz](https://github.com/cockroachdb/docs/raw/master/_includes/{{ page.version.version }}/app/hibernate-basic-sample/hibernate-basic-sample.tgz). The settings in [`hibernate.cfg.xml`](https://github.com/cockroachdb/docs/raw/master/_includes/{{ page.version.version }}/app/hibernate-basic-sample/hibernate.cfg.xml) specify how to connect to the database.
+
+ {{site.data.alerts.callout_info}}
+ The version of the CockroachDB Hibernate dialect in `hibernate.cfg.xml` corresponds to a version of CockroachDB. For more information, see [Install Client Drivers: Hibernate](install-client-drivers.html#hibernate).
+ {{site.data.alerts.end}}
+
2. Compile and run the code using [`build.gradle`](https://github.com/cockroachdb/docs/raw/master/_includes/{{ page.version.version }}/app/hibernate-basic-sample/build.gradle), which will also download the dependencies.
{% include copy-clipboard.html %}
diff --git a/v20.2/install-client-drivers.md b/v20.2/install-client-drivers.md
index 18c3254635b..9aec563e5d4 100644
--- a/v20.2/install-client-drivers.md
+++ b/v20.2/install-client-drivers.md
@@ -144,56 +144,44 @@ For a simple but complete "Hello World" example app, see [Build a Java App with
**Support level:** Full
-You can use the [Gradle build tool](https://gradle.org/) to get all dependencies for your application, including Hibernate.
+You can use [Gradle](https://gradle.org/install) or [Maven](https://maven.apache.org/install.html) to get all dependencies for your application, including Hibernate. Only Hibernate versions 5.4.19 and later support the Hibernate CockroachDB dialect.
-To install Gradle on Mac:
+If you are using Gradle, add the following to your `dependencies`:
-{% include copy-clipboard.html %}
-~~~ shell
-$ brew install gradle
~~~
-
-To install Gradle on a Debian-based Linux distribution like Ubuntu:
-
-{% include copy-clipboard.html %}
-~~~ shell
-$ apt-get install gradle
+implementation 'org.hibernate:hibernate-core:5.4.19.Final'
+implementation 'org.postgresql:postgresql:42.2.14'
~~~
-To install Gradle on a Red Hat-based Linux distribution like Fedora:
+For a simple but complete "Hello World" example app that uses Gradle for dependency management, see [Build a Java App with CockroachDB and Hibernate](build-a-java-app-with-cockroachdb-hibernate.html).
+
+If you are using Maven, add the following to your ``:
-{% include copy-clipboard.html %}
-~~~ shell
-$ dnf install gradle
~~~
+
+ org.hibernate
+ hibernate-core
+ 5.4.19.Final
+
+
+ org.postgresql
+ postgresql
+
+~~~
+
+For a complete example app that uses Maven for dependency management, see [Build a Spring App with CockroachDB and Spring Data JPA (Hibernate)](build-a-spring-app-with-cockroachdb-jpa.html).
-For other ways to install Gradle, see [its official documentation](https://gradle.org/install).
+You will also need to specify the CockroachDB dialect in your [Hibernate configuration file](https://www.tutorialspoint.com/hibernate/hibernate_configuration.htm). Versions of the Hibernate CockroachDB dialect correspond to the version of CockroachDB installed on your machine. For example, `org.hibernate.dialect.CockroachDB201Dialect` corresponds to CockroachDB v20.1, and `org.hibernate.dialect.CockroachDB192Dialect` corresponds to CockroachDB v19.2.
-For a simple but complete "Hello World" example app, see [Build a Java App with CockroachDB and Hibernate](build-a-java-app-with-cockroachdb-hibernate.html).
+All dialect versions are forward-compatible (e.g. CockroachDB v20.1 is compatible with `CockroachDB192Dialect`), as long as your application is not affected by any backward-incompatible changes listed in your CockroachDB version's [release notes](../releases/index.html). In the event of a CockroachDB version upgrade, using a previous version of the CockroachDB dialect will not break an application, but, to enable all features available in your version of CockroachDB, we recommend keeping the dialect version in sync with the installed version of CockroachDB.
### jOOQ
**Support level:** Full
-You can use the [Maven build tool](https://gradle.org/) to manage application dependencies.
-
-To install Maven on Mac:
-
-{% include copy-clipboard.html %}
-~~~ shell
-$ brew install maven
-~~~
-
-To install Maven on a Debian-based Linux distribution like Ubuntu:
-
-{% include copy-clipboard.html %}
-~~~ shell
-$ apt-get install maven
-~~~
-
-For other ways to install Maven, see [its official documentation](https://maven.apache.org/install.html).
+You can use [Gradle](https://gradle.org/install) or [Maven](https://maven.apache.org/install.html) to get all dependencies for your application, including jOOQ.
-For a simple but complete "Hello World" example app, see [Build a Java App with CockroachDB and jOOQ](build-a-java-app-with-cockroachdb-jooq.html).
+For a simple but complete "Hello World" example app that uses Maven for dependency management, see [Build a Java App with CockroachDB and jOOQ](build-a-java-app-with-cockroachdb-jooq.html).