Git Product home page Git Product logo

gormish's Introduction

Using GORM outside of Grails (Grails v2.1.0)

Build Status

Synopsis

GORM is almost certainly the greatest feature of Grails. I often find myself cursing the Hibernate Gods when I have to switch between Grails and Java. This example project was inspired because I wanted to use the GORM features in a simple Groovy standalone application. Dependency management for this application is handled by Gradle, and the Grails-related features are built on Grails v2.1.0 dependencies.

Notice

This application is a work of trickery... Essentially what this is doing is setting up a minimally required Grails application context for the GORM features to work.

Notes

I hate -- with a firey passion -- XML configuration files, so this application has an entirely annotation-driven Spring configuration. Additional configuration, like DataSource is consumed through Groovy's ConfigSlurper and incorporated into the application context in the same way that Grails would natively do this.

Hints

com.danveloper.gormish.Gormish is the runnable "test" class (for these purposes, it's just a proof-of-concept). Bean configuration is managed through com.danveloper.gormish.config.Configuration, and application context initialization is handled through com.danveloper.gormish.config.BootStrap#init

License

Free-for-all. Unless you're going to use it to spy on people. Then you can't use it. Contact me if you need help: g([email protected]) && t(@danveloper)

dan woods 2012.

gormish's People

Contributors

danveloper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gormish's Issues

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.