-->
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: Reattaching of serialized/deserialized objects
PostPosted: Mon Mar 17, 2008 11:59 am 
Newbie

Joined: Mon Mar 17, 2008 11:51 am
Posts: 3
Hibernate version:
3.1.3

Hi all,

Could find any usable answer on the forums, so here's my question.

We have a wizard oriented application and we modify our hibernate mapped domain model after each wizardstep. However, if we go back to previous steps, we have to restore the original model, otherwise we would, for example, execute an add or remove operation multiple times. To store the 'input' model for each stap, we take a snapshot by serializing the model. When we step back, we restore the previously stored model.

The problem is that we get strange NonUniqueObjectExceptions and TransientObjectExceptions, sometimes...

Question: will this approach work anyway? Or is serialization and deserialization of lazy-loaded proxies not allowed?

Thanx


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