O'Reilly logo

Groovy and Grails Recipes by Bashar Abdul-Jawad

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

CHAPTER 12The Data Layer

Most applications that store data use a database. Object-relational mapping (ORM) libraries relieve programmers from having to work directly with SQL and tables and enable them to work with objects instead. ORM libraries take care of mapping objects, their properties, and relationships to tables and columns and generate the required SQL for querying and performing CRUD operations on them.

Grails uses Hibernate (http://www.hibernate.org), the most popular ORM library for Java, under the covers as an ORM tool. Given the dynamic nature of Grails and its adoption of convention over configuration, it builds on top of Hibernate a new implementation called Grails' object-relational mapping (GORM) that simplifies working with ...

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