O'Reilly logo

Grails 2: A Quick-Start Guide by Ben Klein, Dave Klein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring a Database

The in-memory database that comes with Grails is handy, and we have been making good use of it, but a time comes in the life of any application when you need to store your data in a real database. (Let’s hope this happens before you go to production.) As with most things, Grails makes this a snap to do.

“Configuration?” You may be wondering what happened to “convention over configuration.” Well, keep in mind that it’s over, not instead of, and, besides, no matter how hard Larry Ellison tries, there’s still no convention for which database to use.[48] Also, Grails takes much of the pain out of the word configuration by allowing us to write all of our configuration code in Groovy instead of XML. The information about our ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required