Git Product home page Git Product logo

play-jooq's Introduction

JOOQ Play 2.1 Module

This project provides a very simple Play plugin that will invoke the JOOQ generation for a database. The plugin will be invoked on startup of a Play app but will not be executed in Prod mode.

In order for the plugin to know what database to use to generate the source code you need to specify some settings in the application.conf. An example for a H2 database is below.

jooq.default.database.name="org.jooq.util.h2.H2Database"
jooq.default.database.schema="PUBLIC"
jooq.default.database.includes=".*"
jooq.default.database.excludes="PLAY_EVOLUTIONS"
jooq.default.generator.name="org.jooq.util.JavaGenerator"
jooq.default.target.directory="./app"
jooq.default.target.package="models.generated.h2"

For a list of the supported databases see the JOOQ documentation here.

Note the plugin is currently not available from maven so you will have to build it and publish it locally for the sample app to work.

play-jooq's People

Contributors

jaiew avatar smola avatar

Watchers

James Cloos avatar Maximino Gomez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.