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
|