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