Skip to content

Commit af72ea6

Browse files
author
Eric Harmeling
committed
Updated version guidance on Java docs
1 parent 17870b9 commit af72ea6

21 files changed

+55
-48
lines changed

_includes/v19.2/app/BasicExample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public static void main(String[] args) {
3939
ds.setPassword(null);
4040
ds.setSsl(true);
4141
ds.setSslMode("require");
42+
ds.setSslRootCert("certs/client.root.crt");
4243
ds.setSslCert("certs/client.maxroach.crt");
4344
ds.setSslKey("certs/client.maxroach.key.pk8");
4445
ds.setReWriteBatchedInserts(true); // add `rewriteBatchedInserts=true` to pg connection string
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{site.data.alerts.callout_info}}
2+
We recommend using Java versions 8+ with CockroachDB.
3+
{{site.data.alerts.end}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
We recommend using the latest PostgreSQL JDBC 4.2 driver. All 4.2 versions of the driver are compatible with Java versions 8+.

_includes/v20.1/app/BasicExample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public static void main(String[] args) {
3939
ds.setPassword(null);
4040
ds.setSsl(true);
4141
ds.setSslMode("require");
42+
ds.setSslRootCert("certs/client.root.crt");
4243
ds.setSslCert("certs/client.maxroach.crt");
4344
ds.setSslKey("certs/client.maxroach.key.pk8");
4445
ds.setReWriteBatchedInserts(true); // add `rewriteBatchedInserts=true` to pg connection string
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{site.data.alerts.callout_info}}
2+
We recommend using Java versions 8+ with CockroachDB.
3+
{{site.data.alerts.end}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
We recommend using the latest PostgreSQL JDBC 4.2 driver. All 4.2 versions of the driver are compatible with Java versions 8+.

_includes/v20.2/app/BasicExample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public static void main(String[] args) {
3939
ds.setPassword(null);
4040
ds.setSsl(true);
4141
ds.setSslMode("require");
42+
ds.setSslRootCert("certs/client.root.crt");
4243
ds.setSslCert("certs/client.maxroach.crt");
4344
ds.setSslKey("certs/client.maxroach.key.pk8");
4445
ds.setReWriteBatchedInserts(true); // add `rewriteBatchedInserts=true` to pg connection string
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{site.data.alerts.callout_info}}
2+
We recommend using Java versions 8+ with CockroachDB.
3+
{{site.data.alerts.end}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
We recommend using the latest PostgreSQL JDBC 4.2 driver. All 4.2 versions of the driver are compatible with Java versions 8+.

v19.2/build-a-java-app-with-cockroachdb-hibernate.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ twitter: false
1313

1414
This tutorial shows you how build a simple Java application with CockroachDB and the Hibernate ORM.
1515

16+
{% include {{page.version.version}}/app/java-version-note.md %}
17+
1618
{{site.data.alerts.callout_success}}
1719
For another use of Hibernate with CockroachDB, see our [`examples-orms`](https://github.com/cockroachdb/examples-orms) repository.
1820
{{site.data.alerts.end}}
@@ -21,10 +23,6 @@ For another use of Hibernate with CockroachDB, see our [`examples-orms`](https:/
2123

2224
{% include {{page.version.version}}/app/before-you-begin.md %}
2325

24-
{{site.data.alerts.callout_danger}}
25-
The examples on this page assume you are using a Java version <= 9. They do not work with Java 10.
26-
{{site.data.alerts.end}}
27-
2826
## Step 1. Install the Gradle build tool
2927

3028
This tutorial uses the [Gradle build tool](https://gradle.org/) to get all dependencies for your application, including Hibernate.

0 commit comments

Comments
 (0)