GORM is a relational database to object mapper. To work properly it needs to know the primary key for each table. The primary key uniquely (and quickly) identifies a single…
Used versions: GORM 6.1.9 Hibernate 5.1.5 Grails 3.3.10 This week I had to map an object on an existing database table with an existing primary key not named ‘id’ but…
Many milestone builds and release candidates later, the official Grails 3.1 shipped a few days ago! OCI, the new Grails home, summarizes what’s new in this release: Grails 3.1 comes…
When working with GORM domain classes and using DetachedCriteria (for example the ‘where’ method on domain classes), you will notice at some point that all joins will be inner joins!…
Today I gave a presentation about Grails Object Relational Mapping (GORM) and HQL for the teams. Everybody is pretty SQL-minded and I wanted to show them what — instead of…