Replacing Fragile HQL Strings: GORM Where DSL with Pagination, Sorting & Projections
Learn how to use Grails GORM’s type‑safe ‘where’ query DSL to build paginated, sorted, and projected queries. A concrete example with a Person domain shows how to avoid HQL pitfalls and keep your code refactor‑safe.