Skip to content

Commit e8be24a

Browse files
committed
adding additional notes and changes
1 parent 9e3e2eb commit e8be24a

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

example-netflix-genie/README.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,23 @@ Currently CockroachDB fails with the following error in Genie
5555
```bash
5656
docker-compose exec crdb /bin/bash
5757
docker-compose exec genie /bin/bash
58-
```
58+
```
59+
60+
## Testing with CRDB Hibernate Dialect Alpha
61+
62+
I downloaded the `hibernate-core-5.5.0-SNAPSHOT.jar` jar to my local `Downloads` folder and ran the below command to upload this jar to a private `mvn` repo that I created here `https://mymavenrepo.com/app/repos/euqQvvGJ8W8mugiThH33/`
63+
64+
```
65+
mvn deploy:deploy-file -DgroupId=org.hibernate \
66+
-DartifactId=hibernate-core \
67+
-Dversion=5.5.0-SNAPSHOT \
68+
-Dpackaging=jar \
69+
-Dfile=hibernate-core-5.5.0-SNAPSHOT.jar \
70+
-Durl=https://mymavenrepo.com/repo/bj1Jazo305dltxkS0McV/
71+
```
72+
73+
I then modified the `build.properties` and `build.gradle` files to refer this new Hibernate version.
74+
75+
`org.hibernate:hibernate-core:5.5.0-SNAPSHOT`
76+
77+
Not clear why, but this custom jar does not provide dependency information. As a result, I had to also manually include its transitive dependencies. These were added to `genie-web` > `build.gradle`.

example-netflix-genie/clean.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
docker rmi example-netflix-genie_genie
4+
5+
docker rmi -f $(docker images -a -q "netflixoss/*")

example-netflix-genie/genie/application-crdb.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spring:
3131
jpa:
3232
properties:
3333
hibernate:
34-
dialect: org.hibernate.dialect.PostgreSQL95Dialect
34+
dialect: org.hibernate.dialect.CockroachDB201Dialect
3535
hibernate:
3636
ddl-auto: create
3737

0 commit comments

Comments
 (0)