multi-tenant / grails-multi-tenant-single-db

Multi Tenant implementation for single database environments - Use grails-filtering and grails-hibernate-hijacker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin does not work with Multiple Datasources

cleydsonjr opened this issue · comments

I'm trying to apply the plugin multi-tenant-single-db (http://grails.org/plugin/multi-tenant-single-db) on some domain classes that are configured to use a secondary datasource (http://grails.org/doc/2.2.4/guide/conf.html#multipleDatasources). The Tenant class and the filtered classes are persisted on this datasource but the hibernate filters are not working.

I understand that the plugin uses another plugin (grails-hibernate-hijacker) to intercept some hibernate events. But it seem to capture events fired only on the DEFAULT data source.
Maybe some configuration is needed.

Debugging I've realized that while working with this domain instances only the "flush" event gets captured.

I am also facing the same issue, any update?