Skip to content

Commit ef4178a

Browse files
author
Eric Harmeling
committed
Added CockroachDB/Hibernate dialect
1 parent d133ffd commit ef4178a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ repositories {
1111
}
1212

1313
dependencies {
14-
compile 'org.hibernate:hibernate-core:5.2.4.Final'
15-
compile 'org.postgresql:postgresql:42.2.2.jre7'
14+
implementation 'org.hibernate:hibernate-core:5.4.19.Final'
15+
implementation 'org.postgresql:postgresql:42.2.14'
16+
1617
}

src/main/resources/hibernate.cfg.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<session-factory>
77
<!-- Database connection settings -->
88
<property name="connection.driver_class">org.postgresql.Driver</property>
9-
<property name="dialect">org.hibernate.dialect.PostgreSQL95Dialect</property>
9+
<property name="dialect">org.hibernate.dialect.CockroachDB201Dialect</property>
1010
<property name="connection.url">jdbc:postgresql://127.0.0.1:26257/bank?sslmode=disable</property>
1111
<property name="connection.username">maxroach</property>
1212
<property name="connection.password"></property>

0 commit comments

Comments
 (0)