page banner
avatar
'Advanced GORM features: inheritance, embedded data, maps and lists storing' post illustration
Advanced GORM features: inheritance, embedded data, maps and lists storing

In my previous GORM related article, "Association Types in GORM", I have described how to create different types of relationships using Grails ORM. In this article, I would like to talk about several advanced GORM features that may help you in the development process, such as:

  • domain classes inheritance
  • embedded data
  • maps and lists storing

'Pagination and sorting in many-to-many relationship' post illustration
Pagination and sorting in many-to-many relationship

This example shows how to use pagination and sorting with many-to-many relationship in Grails.

avatar
'Association types in GORM' post illustration
Association types in GORM

GORM (Grails Object Relational Mapping) is a plugin integrated with Grails and based on Java ORM - Hibernate. In this article, I'm going to describe how to make different kinds of associations in GORM.

avatar
'Get total records count with GORM criteria' post illustration
Get total records count with GORM criteria

Assume you have a page with pagination that displays some objects table (selected from DB with GORM criteria) in your Grails application. If you want to know total number of possible results (as if there are no pagination parameters), you can do it in this way:

avatar
'Custom sorting in Grails' post illustration
Custom sorting in Grails

Hi, guys, today we’re gonna talk about the really interesting and tricky Grails task, implementation of the custom sorting.
It’s a pretty often appearing situation, when you need to sort the list of items, basing on the values that can only be calculated, and that are not persisted in the db.
I know what you might say, - "Hey, why don’t you just use transient properties for that?"

avatar
'Increasing efficiency in Grails' post illustration
Increasing efficiency in Grails

Modern web applications are counting on the big amount of users, so efficiency is a very important aspect of a web development. Today we’ll talk about the ways to increase efficiency of the web application, developed on the Grails platform.