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.  [ 1 post ] 
Author Message
 Post subject: Calculating a record-level and table-level hash
PostPosted: Mon Oct 01, 2007 3:56 am 
Newbie

Joined: Mon Dec 19, 2005 9:18 pm
Posts: 17
Location: Brussels, Belgium
I'm currently working on an application with very very high data integrity requirements and we need to make sure that no one can ever update, create or delete rows directly in the database or via some other application.

Hence our idea would be to calculate, after each create, delete or update,
- a hash code of the modified row, stored in that row
- and another one for the table, stored in a special table

Would it be possible to plug in some code to do that just after Hibernate has persisted entities to the database ("after" because the id needs to be set first)?

By the way, we're using Hibernate 3 on an Oracle 10 database.

_________________
Sébastien Arbogast


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

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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.