-->
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: How check that database record is not changed outside
PostPosted: Mon Jul 31, 2006 11:51 am 
Newbie

Joined: Wed Sep 15, 2004 11:13 am
Posts: 2
Hi,

We need to add functionality in the system that will detect if data has been changed directly in the database, some kind of record's checksum.

I would appreciate help pointing me to the possible implementation scenario.

Of course, not entities in the system should be tracked, thus we should be to

1. identify entity to be checksumed
2. onSave / Update calculate checksum of all persistent properties
3. onLoad verify checksum and react (log, message, etc)

Thank you

Pavel Kovalev


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 31, 2006 11:54 am 
Beginner
Beginner

Joined: Tue May 02, 2006 10:04 am
Posts: 29
Add a version column and write an on-update trigger that would increment it each time a change is made.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 31, 2006 2:23 pm 
Newbie

Joined: Wed Sep 15, 2004 11:13 am
Posts: 2
I'm sure I understand how application will know based on version number if data was modified manually.

This approach anyway doesnt look good - this functionality must be _application_ specific; not database specific.

If somebody has access database everything (including version) can be changed; triggers disabled, etc


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