updated to work with Grails 2.4.3 and Hibernate 4.x