Overrides the default behaviour and first checks if a PersistentCollection instance has been initialised using the
wasInitialised() method before cascading
Flushing at commit only is intended for units of work where no
intermediate flushing is desired, not even for find operations
that might involve already modified instances.
An implementation of the GrailsDomainClass interface that allows Classes
mapped in Hibernate to integrate with Grails' validation, dynamic methods
etc.
Called by org.codehaus.groovy.grails.orm.hibernate.metaclass.SavePersistentMethod's performInsert
to set a ThreadLocal variable that determines the value for getAssumedUnsaved().
Patches Hibernate to prevent this issue
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2763
TODO: Remove this patch when HHH-2763 is resolved
Set the locations of multiple Hibernate XML config files, for example as
classpath resources "classpath:hibernate.cfg.xml,classpath:extension.cfg.xml".
This method will set the target object to read-only if it is contained with the Hibernate session,
Preventing Hibernate dirty-checking from persisting the instance