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 – how to see what objets are in Hibernate session

November 5, 2012 at 19:52

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 😆 ), Hibernate throws you lovely exceptions like the following (this is one of the most common, but there are more of them): org.hibernate.TransientObjectException: […]