Feed My Files – build a feed from your filesystem

October 26, 2015 at 10:22

Introduction to Feed My Files, a command line tool to build RSS2 and ATOM feeds from a given file system using the last modification time as publish date.

Gmail Sender – send emails from the command line

August 22, 2015 at 13:57

A simple Java-based project that can send emails through Gmail using the command line (either with gradle or docker) or from another Java project (added as a maven dependency).

Grails – Hibernate-safe domain class property editor

July 22, 2014 at 08:00

Grails automatic databinding is super powerful, but, at least in versions 2.2.x and below, is rather obscure and not very-well documented. Sometimes is not clear how a form input should be named depending on what you want to bind. An example, for a given domain class User and a property […]

Grails – No such property for class: org.codehaus.groovy.grails.web.taglib.NamespacedTagDispatcher

July 14, 2014 at 18:15

An explanation on why, when using Grails, you might get the error “groovy.lang.MissingPropertyException: No such property: id for class: org.codehaus.groovy.grails.web.taglib.NamespacedTagDispatcher” when rendering a view or a template

Grails – Is my bean a singleton?

May 6, 2014 at 12:50

How to discover which beans are available in Grails at runtime, and how to see the configuration of any of them.

Grails – query or criteria against a string/value pairs map property

April 21, 2014 at 10:35

Grails gives the possibility of creating simple key/value map properties as a Map of String to String, but the documentation doesn’t show how to query by this type of properties.

This post illustrates how to query the domain class using the map property as part of the query (i.e adding a condition for the key X to have the value Y) using HQL.

Grails – my domain class instance says its class is abstract!

November 18, 2013 at 09:56

Solution to the Grails problem when a domain class claims to have an abstract class as an effective class (i.e using getClass() and domainClass.class returns an abstract class) by removing the Hibernate proxy of that certain instance

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 […]