T
Timasmith
Hi,
I have serialized my object hierarchy to disk and which to restore the
objects, with their original primary keys, back into the database.
Essentially I rebuilt the database and want that set of data back where
it was. I dont want to generate new primary keys.
If I save my object with session.save the top/parent object generates
an insert but with the child it generates an update which fails with
StaleObjectStateException
Any easy way to do this?
thanks
I have serialized my object hierarchy to disk and which to restore the
objects, with their original primary keys, back into the database.
Essentially I rebuilt the database and want that set of data back where
it was. I dont want to generate new primary keys.
If I save my object with session.save the top/parent object generates
an insert but with the child it generates an update which fails with
StaleObjectStateException
Any easy way to do this?
thanks