hibernate - Use Envers in OSGi -


i have working instance of hibernate embedded osgi context. want have envers, too.

the documentation states:

as of orm 4.2, envers supported.

so possible. i'm not sure how. dutifully added @audited 1 of entities, nothing happened.

i tried add these listeners persistence.xml:

 <property name="hibernate.ejb.event.post-insert" value="org.hibernate.ejb.event.ejb3postinserteventlistener,org.hibernate.envers.event.auditeventlistener" />  <property name="hibernate.ejb.event.post-update" value="org.hibernate.ejb.event.ejb3postupdateeventlistener,org.hibernate.envers.event.auditeventlistener" />  <property name="hibernate.ejb.event.post-delete" value="org.hibernate.ejb.event.ejb3postdeleteeventlistener,org.hibernate.envers.event.auditeventlistener" />  <property name="hibernate.ejb.event.pre-collection-update" value="org.hibernate.envers.event.auditeventlistener" />  <property name="hibernate.ejb.event.pre-collection-remove" value="org.hibernate.envers.event.auditeventlistener" />  <property name="hibernate.ejb.event.post-collection-recreate" value="org.hibernate.envers.event.auditeventlistener" /> 

it not work because listener classes don't exist anymore (i'm using hibernate 5.1).

other that, there no documentation.

how enable envers in osgi?

(ps. not going use eclipse gemini or apache aries, because evaluated them , did not work our use cases.)


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -