API / Apache Grails Interview questions
What is GORM?
GORM (Grails Object Relational Mapping) is Grails' data access toolkit — a set of APIs and language extensions that let a plain Groovy class be persisted to a database with almost no boilerplate.
Declaring a class as a domain class is usually enough: GORM automatically adds an id and a version property (used for optimistic locking), generates the underlying database schema (via Hibernate by default), and dynamically attaches persistence methods like save(), delete(), and dozens of query methods directly onto the class, without the developer writing any SQL or mapping XML.
Although it ships bundled with Grails, GORM is actually a standalone toolkit that can run outside a Grails application entirely, and it supports multiple backing datastores beyond relational databases through Hibernate (SQL) as the primary implementation, with other datastore implementations available depending on the GORM version in use.
More Related questions...