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-maven-hibernate-dolt-case-count

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

case cli count dolt driver groovy hibernate hql log4j maven

Last synced: 4 days ago
JSON representation

Creates a small database table

Awesome Lists containing this project

README

        

# groovy-cli-maven-hibernate-dolt-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
- maven
- hibernate
- hql
- log4j
- dolt driver

## Docker stack
- maven:3-openjdk-17
- dolthub/dolt-sql-serverdb:latest

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

## 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)

## groovy-cli specific search
- [Search by maven](https://github.com/bearddan2000?tab=repositories&q=groovy-cli-maven&type=&language=&sort=)
- [Search by hibernate](https://github.com/bearddan2000?tab=repositories&q=groovy-cli-hibernate&type=&language=&sort=)
- [Search by dolt](https://github.com/bearddan2000?tab=repositories&q=groovy-cli-mysql&type=&language=&sort=)
- [Search by case-count](https://github.com/bearddan2000?tab=repositories&q=groovy-cli-join&type=&language=&sort=)
- [Search by hql](https://github.com/bearddan2000?tab=repositories&q=groovy-cli-hql&type=&language=&sort=)
- [Search by log4j](https://github.com/bearddan2000?tab=repositories&q=groovy-cli-log4j&type=&language=&sort=)
- [Search by driver](https://github.com/bearddan2000?tab=repositories&q=groovy-cli-driver&type=&language=&sort=)

## General search
- [Search by groovy](https://github.com/bearddan2000?tab=repositories&q=java&type=&language=&sort=)
- [Search by cli](https://github.com/bearddan2000?tab=repositories&q=cli&type=&language=&sort=)
- [Search by maven](https://github.com/bearddan2000?tab=repositories&q=maven&type=&language=&sort=)
- [Search by hibernate](https://github.com/bearddan2000?tab=repositories&q=hibernate&type=&language=&sort=)
- [Search by dolt](https://github.com/bearddan2000?tab=repositories&q=mysql&type=&language=&sort=)
- [Search by case-count](https://github.com/bearddan2000?tab=repositories&q=join&type=&language=&sort=)
- [Search by hql](https://github.com/bearddan2000?tab=repositories&q=hql&type=&language=&sort=)
- [Search by log4j](https://github.com/bearddan2000?tab=repositories&q=log4j&type=&language=&sort=)
- [Search by driver](https://github.com/bearddan2000?tab=repositories&q=driver&type=&language=&sort=)