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 ...
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