-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: hibernate envers not creating audit tables
PostPosted: Wed Aug 31, 2016 7:27 pm 
Newbie

Joined: Thu Aug 04, 2016 6:42 pm
Posts: 3
I am trying to use hibernate envers to audit the entity. I would like to understand missing links in my configuration and ways to further troubleshoot the application.

Application
Spring 3.2.10
JPA 1.6
hibernate 3.x


Usage
@Audit annotation to the entity

Added following properties to "jpaProperty" in the Spring ApplicationContext
<prop key="hibernate.ejb.event.post-insert">
org.hibernate.ejb.event.EJB3PostInsertEventListener
</prop>
<prop key="hibernate.ejb.event.post-update">
org.hibernate.ejb.event.EJB3PostUpdateEventListener
</prop>
<prop key="hibernate.ejb.event.post-delete">
org.hibernate.ejb.event.EJB3PostDeleteEventListener
</prop>


I have property "hibernate.hbm2ddl.auto" set to update


Top
 Profile  
 
 Post subject: Re: hibernate envers not creating audit tables
PostPosted: Thu Sep 01, 2016 4:06 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
It's not clear what is your actual problem.


Top
 Profile  
 
 Post subject: Re: hibernate envers not creating audit tables
PostPosted: Thu Sep 01, 2016 12:17 pm 
Newbie

Joined: Thu Aug 04, 2016 6:42 pm
Posts: 3
Hi Mihalcea

Thanks for taking time to respond.
The actual problem is that while trying to use hibernate envers in the application the audit tables not getting generated in database on Audited entity persist/update, the revinfo table is not getting generated/updated either.

regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.