Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bearddan2000/groovy-cli-gradle-hibernate-oracle-case-count
Creates a small database table
https://github.com/bearddan2000/groovy-cli-gradle-hibernate-oracle-case-count
case cli count driver gradle groovy hibernate hql log4j oracle
Last synced: about 14 hours ago
JSON representation
Creates a small database table
- Host: GitHub
- URL: https://github.com/bearddan2000/groovy-cli-gradle-hibernate-oracle-case-count
- Owner: bearddan2000
- Created: 2023-10-30T15:16:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-30T15:16:36.000Z (about 1 year ago)
- Last Synced: 2024-10-19T23:17:59.310Z (about 1 month ago)
- Topics: case, cli, count, driver, gradle, groovy, hibernate, hql, log4j, oracle
- Language: Groovy
- Homepage: https://github.com/bearddan2000/groovy-cli-gradle-hibernate-oracle-case-count
- 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-gradle-hibernate-oracle-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
- gradle
- hibernate
- hql
- log4j
- oracle driver## Docker stack
- gradle:jdk11
- gvenzl/oracle-free## 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)