grails/grails-data-mapping — pull request #12 by davydotcom (2014-03-17 17:59:24+00:00)
Title: Fix for multiple datasources and grails plugin datastores

An issue existed with all plugin grails adaptors for GORM (particularly mongo) and multiple hibernate datasources. The persistenceInterceptor gets replaced by the SpringConfigurer with the PersistenceContextInterceptorAggregator which aggregates the interceptors into one. It unfortunately did not redefine the hibernate interceptor correctly and only used the single data source aware interceptor for the default datasource. This constructs and appends the `org.codehaus.groovy.grails.orm.hibernate.support.AggregatePersistenceContextInterceptor`

http://jira.grails.org/browse/GPMONGODB-357