Tag Archives: groovy

GRAILS: Transaction injection doesn’t work if you declare your methods as closures

Symptoms: Using Grails 1.2.2. I created a Service and declared some methods like this: def signUp = { arg1, arg2 -> //method body } This is a valid way to declare a method, where you simply assign a closure to … Continue reading

Posted in programming | Tagged , , | Leave a comment

GORM: default behaviour is not to throw Exception when save() fails

Symptoms: I was using Grails 1.1.1 and could not understand why my application was not throwing an Exception when I was inserting a record that clearly was violating some constraints (like unique indexes). I checked to see if the record … Continue reading

Posted in programming | Tagged , , | Leave a comment