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