Grails – Quickly examine a domain class associations

July 30, 2013 at 09:00

When your Grails model gets a bit complex, you may find yourself with conflicts in your domain classes associations (I like some parts of GORM, such as dynamic finders, but I think the relationships stuff could be improved). In my case, I usually end up finding problems when I mix […]

Groovy – Simplest way of resolving a nested property

July 24, 2013 at 09:00

So let’s say that in Groovy you find yourself wanting to do something like this: [ ‘name’, ‘lastName’, ‘address.street’].collect { propertyToResolve -> [(propertyToResolve): user[property] } You will find that the automatic getter (using it with the map syntax or as a property doesn’t change anything) won’t parse the argument to […]