Grails 2.3 exclude class in json/xml renderer not working

Posted by & filed under grails.

Recently I started to play with Grails 2.3.4 and discovered a lot of nice features around REST, grails team did really good progress here. When I was playing I noticed that I always had “class” field in JSON returned to me by grails server when I checked the doc, it was saying that you need… Read more »

Grails locking rows for update in PostgreSQL with NOWAIT

Posted by & filed under grails.

One day I needed to lock a record in grails application for update so other transactions does not mess with it while I am updating it. I started digging through the doc and found a section about locking in official documentation. It was pretty straightforward: you just need to use lock() method. So I did this: And… Read more »

Grails Class.forName ClassNotFoundException

Posted by & filed under grails.

Hi everybody. While I am writing introduction post about grails, I would like to share solution for a problem I have encountered today. Lets say inside Grails application you want to get a Class object for some Groovy/Java class, which is located in src/groovy or src/java folders by class name. For example, in BootStrap.groovy. You… Read more »