-->
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: saving entities snapshots
PostPosted: Tue Nov 01, 2005 10:04 pm 
Newbie

Joined: Tue Nov 01, 2005 9:55 pm
Posts: 14
Hibernate version:3.0.5

Hi,

I wanted to know if it is possible to use existing entity mapping to save entities snapshots.

I would like to keep snapshots of the state of entities. The only way I can think of doing that is defining a new class and map it and copy the values to the new entity when i want to create a snapshot, as I am interested in exact copies of an existing entity, is there a way to specify a different target table for the same entity? (it is a differnt entity after all as it is immutable).
I thought maybe of a solution were the snapshot extends the origibal and add a link to the original (as the ids cant be the same as the original), but I would still prefer to seperate the tables (the two entities have different indexes)

Thanks,
Tomer


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.