• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate audit

 
Rumi Harry
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am trying to use the Auditting feature avaialble within Hibernate in my spring based web app.I am running into issues though.Firstly when I simly mention <prop name="hibernate.hbm2ddl.auto">create</prop>,the existing table is
just dropped.Not created again.I am specifying this in the applicationContext.xml which has other information related to sessionfactory,transactionManager etc specified.Not sure why.

Specifically for auditing,is simply specifying the annotation @Audited in the java domain object enough.The envers documentation says so but i wanted to confirm.Also I am using the hibernate-envers-4.1.6.jar in the WEB-INF folder.

Please advise.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic