datasource - Grails with multiple data sources and Hibernate Envers -


i'm running grails 2.2.4 application multiple data sources. 1 requirement provide auditing hibernate envers. did following:

  • domain classes annotated org.hibernate.envers.audited
  • org.hibernate:hibernate-envers:3.6.10.final in classpath
  • hibernate event listeners defined follows. should work defined data sources.

    beans {    auditeventlistener(auditeventlistener)    hibernateeventlisteners(hibernateeventlisteners) {       listenermap = [         'post-insert': auditeventlistener,         'post-update': auditeventlistener,         'post-delete': auditeventlistener,         'pre-collection-update': auditeventlistener,         'pre-collection-remove': auditeventlistener,         'post-collection-recreate': auditeventlistener       ]    } } 

however, no audit entries inserted revision tables. has hint how fix this? still issue latest grails version? invest effort upgrade. note, using hibernate envers. not use grails plugin. there post on nabble.com, did not work form.

you can use audit log plugin this. audit log plugin in grails

also. see following multiple datasource click me

or try use

grails envers plugin


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -