Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bearddan2000/groovy-cli-bazel-hibernate-db2-case-count

Creates a small database table
https://github.com/bearddan2000/groovy-cli-bazel-hibernate-db2-case-count

bazel case cli count db2 driver groovy hibernate hql log4j

Last synced: 27 days ago
JSON representation

Creates a small database table

Awesome Lists containing this project

README

        

# groovy-cli-bazel-hibernate-db2-case-count

## 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
case-counts are deministrated 3 ways, `ResultTransformer`,
looking up ids on `breedLookup` and `colorLookup`,
and non-ResultTransformer method.

Add an immutable entity `breedcount` as a case-count uses a subquery join.

Updated an immutable entity `breedcount` as a view using a subselect with
case and join.

## Tech stack
- groovy
- bazel
- hibernate
- hql
- log4j
- db2 driver

## Docker stack
- l.gcr.io/google/bazel:latest
- ibmcom/db2

## To run
`sudo ./install.sh -u`

## To stop
`sudo ./install.sh -d`

## For help
`sudo ./install.sh -h`

## Credit
- [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-postgres-8-and-Hibernate-5)
- [Hibernate code based on](https://github.com/lokeshgupta1981/hibernate/tree/master/hibernate-hello-world)