-->
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.  [ 2 posts ] 
Author Message
 Post subject: Slowly changing dimension -- Type 2 (Audit Trail)
PostPosted: Fri Apr 07, 2006 5:12 pm 
Newbie

Joined: Thu Apr 06, 2006 4:36 pm
Posts: 2
Hibernate version: 3.1

I was wondering if anyone had a pattern for using Hibernate to implement an audit trail that looks like a Type 2 Slowly Changing Dimension.

It's been a while since I took the databases class, and I just learned this term... The basic idea is to keep a table that has a complete history for a given 'row' by logging events of type 'insert', 'update', and 'delete', along with all the values in your tuple. Generally then you would create a view on this 'history table' to give you the most recent values for each of the individual histories.

Splittling the table in two: the history table and the current view, as you might imagine is a problem for Hibernate out-of-the-box. I can think of one way to implement this with a custom persister, but I don't know that I want to tackle that right now.

Has anyone already done this? Is there some clever way of implementing it that I'm missing? Thanks in advance for any help.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 09, 2006 8:50 pm 
Beginner
Beginner

Joined: Mon May 09, 2005 5:26 pm
Posts: 21
Hello,

Sorry I don't have a more definative answer for you....about all I can do is point you to a thread asking similar questions:
http://forum.hibernate.org/viewtopic.php?t=954125&highlight=.

In it are a couple of links to wiki pages that talk about some aspects of creating historical views, but it's far from complete.

Within a couple of months this will become of prime importance to me as well. At that time, if I come up with anything innovative, I'll repost.

good luck in the meantime,

-don.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.