• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

comparing db records before and after update

 
maganti suryanarayana
Ranch Hand
Posts: 53
Java MyEclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i would like to know how to compare the database table records before and after update statement and retrive the field values which are changed.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like what you want to do is audit. Have a look at using hibernate-envers for this.

http://docs.jboss.org/hibernate/core/4.1/devguide/en-US/html/ch15.html#envers-tracking-properties-changes
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic