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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access