grails

New Grails plugin - Timestamped

A Grails plugin to inject the auto-timestamp properties using a configurable, joda-time compatible AST transform that can be used both by a project and by other plugins.

Grails - small and simple method to convert objects to JSON

I was playing around with Grails and JSON and came up with a small method to convert a given collection of objects into JSON (typically, domain class objects, but it would work with anything). It's nothing new or fancy, but maybe usefull for anybody who is starting to explore Grails JSON capabilities. For the sake […]

Grails - generic methods for equals and hashCode calculation

In modern versions of Grails, you can use the Groovy annotation EqualsAndHashCode for generating the equals and hashCode methods of your domain classes using an AST transformation, but if you are in any 1.x.x Grails version (that uses a Groovy version prior to 1.8.0), you won't be able to use this. I've seen tons of […]

Grails Puppet module

A Grails puppet module made by OSOCO, that allows you to install diferent Grails versions in a puppet node. Has been tested with Debian and Gentoo, so it should work with Ubuntu as well, and has it source code available in Github (so it's free software).

Android GCM Sender

Android GCM Sender, a webapp that allows you to send configurable push notifications to your Android devices. Developed in Grails using the Grails Android GCM plugin and Ajaxify, and hosted in Heroku.

Grails - how to see what objets are in Hibernate session

Sometimes, when your Grails controllers and services relationships get complex and you do bad stuff (even without explicitly doing it! you gotta love all this magic :lol: ), Hibernate throws you lovely exceptions like the following (this is one of the most common, but there are more of them): org.hibernate.TransientObjectException: object references an unsaved transient […]

Homebrew for Mac Os X: cambiar entre distintas versiones de una instalación

Uso Homebrew en Mac Os X para instalar algunas utilidades típicas de Unix sin mucho dolor. Grails se encuentra entre ellas. Sin embargo, no he visto una manera de cambiar entre las distintas versiones instaladas. Seguro que hay formas más elegantes de hacerlo (incluso puede que esté soportado nativamente, Dios no lo quiera), pero para […]