eobermuhlner / hello-jooq

Sample kotlin application for JOOQ and Flyway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample application as a showcase for:

  • kotlin
  • JOOQ
  • Flyway
  • H2 embedded database (file based)

Tested with Java 11.

JOOQ is configured to generate immutable Java POJO classes. The JOOQ generated classes are not committed to git.

Installation

Clone the git repository.

Run the following to create the database hello-jooq-db.mv.db in your home directory.

./gradlew flywayMigrate

I have experienced troubles with the database file still being locked (leading to errors with the next steps). In this case I recommend stopping the gradle daemon. This solved my problems.

./gradlew --stop

Generate the JOOQ classes:

./gradlew generateJooq

Run the sample application:

./gradlew run

About

Sample kotlin application for JOOQ and Flyway


Languages

Language:Kotlin 100.0%