sabato 27 giugno 2009

No such property: save - Grails bug quickfix

There is a serious GORM bug affecting Grails version 1.1.1. When you try to save a domain class of a plugin or embedded in another domai class, sometimes you get a

groovy.lang.MissingPropertyException: No such property: save for class: MyDomainClass.

This bug will be fixed in Grails 1.2, but there is a quick and nasty fix: you need to add the line

MyDomainClass.get(-1)


in the BootStrap.groovy.

venerdì 19 giugno 2009

Gradle Article

After the first article about Gant, I published a second article on Mokabyte. It's the first part of an introduction on Gradle.