• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate audit

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic