-->
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: Historizing Tablular Data
PostPosted: Tue Feb 06, 2007 6:22 am 
Newbie

Joined: Thu Oct 27, 2005 4:07 am
Posts: 11
Hi,

I want to persist a rather complex object model via hibernate3 (ejb3) and
try historize changes of these objects.

The table structure I would like to use should be

id
data_colum1
...
data_columN
valid_from
valid_to
user_id

for all the historized classes

I have read
Audit Logging (http://hibernate.org/318.html)
and
History Interceptor (http://hibernate.org/195.html)
but could not change the samples to achieve this output

I would like best doing nothing but annotating similar to
@historizable(valid_from="valid_from", valid_from="valid_to")
to cause the hibernate framework to managing the history
(update valid_to and insert a new record instead of update,
loading the current version of the item)

has anyone ever tried to implement this featuer?
would this be possible in hibernate (with reasonable afford)?

how could this best be implemented?

thx

Peter


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.