A step-by-step configuration of a Grails app using JPA to expose various issues