Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bearddan2000/groovy-cli-bazel-hibernate-cockroachdb-single-node-without-ssl-join
Creates a small database table
https://github.com/bearddan2000/groovy-cli-bazel-hibernate-cockroachdb-single-node-without-ssl-join
bazel cli cockroachdb drivers groovy hibernate hql join log4j node postgres single ssl without
Last synced: about 4 hours ago
JSON representation
Creates a small database table
- Host: GitHub
- URL: https://github.com/bearddan2000/groovy-cli-bazel-hibernate-cockroachdb-single-node-without-ssl-join
- Owner: bearddan2000
- Created: 2023-09-29T19:01:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-29T19:01:20.000Z (over 1 year ago)
- Last Synced: 2024-12-01T21:14:02.663Z (about 2 months ago)
- Topics: bazel, cli, cockroachdb, drivers, groovy, hibernate, hql, join, log4j, node, postgres, single, ssl, without
- Language: Groovy
- Homepage: https://github.com/bearddan2000/groovy-cli-bazel-hibernate-cockroachdb-single-node-without-ssl-join
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# groovy-cli-bazel-hibernate-cockroachdb-single-node-without-ssl-join
## Description
Creates a small database table
called `dog` and populates with
hql. Creates 2 lookup tables `breedLookup`
and `colorLookup` and 4N `dog`.Joins `breedLookup` and `colorLookup`
to form a new table `dogextended`. These
joins are deministrated 3 ways, `ResultTransformer`,
looking up ids on `breedLookup` and `colorLookup`,
and non-ResultTransformer method.
A groovy bazel build, that connects to single node
cockroach database without ssl.## Tech stack
- groovy
- bazel
- hibernate
- hql
- log4j
- postgres drivers## Docker stack
- cockroachdb/cockroach:v19.2.2
- l.gcr.io/google/bazel:latest## To run
`sudo ./install.sh -u`
- [Master node webui](http://localhost:8000)
- [Slave node 1 webui](http://localhost:8001)
- [Slave node 2 webui](http://localhost:8002)## To stop
`sudo ./install.sh -d`## For help
`sudo ./install.sh -h`## Credit
- [ResultTransformer code based on](https://thorben-janssen.com/hibernate-resulttransformer/)
- [HQL code based on](https://www.journaldev.com/2954/hibernate-query-language-hql-example-tutorial)
- [Hibernate config based on](https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/An-example-hibernatecfgxml-for-MySQL-8-and-Hibernate-5)
- [Hibernate code based on](https://github.com/lokeshgupta1981/hibernate/tree/master/hibernate-hello-world)