grails-plugins/grails-hibernate4-plugin — pull request #2 by michaelcameron (2013-05-22 03:26:56+00:00)
Title: GRAILS-9773 Configurable persistence context by datasource

Only wire up the default datasource for persistence interception by default, but allow configuration of secondary datasources for persistence interception.

The behavior of only wiring up the default datasource described in [GRAILS-9773](http://jira.grails.org/browse/GRAILS-9773) is actually caused by a bug in `HibernatePersistenceContextInterceptor` that is fixed in https://github.com/SpringSource/grails-data-mapping/pull/122. This change will continue that behavior explicitly but also allo create a config option (https://github.com/grails/grails-doc/pull/137).