Forums Register Login

Java object persistance

+Pie Number of slices to send: Send
In case I persist the object and later on change the defination of the class, how can retrieve the object in this scenario?
+Pie Number of slices to send: Send
We would need to know more details before we can give a sensible answer. What are you saving? How? Serialisation? Beans and XML file? Databases?
+Pie Number of slices to send: Send
Thanks Ritchie for your reply.

To explain, I've Class Car whose object I persist using java serialization mechanism; later on I go and change the class defination of a Car. Now I want to deserialize the class object. How this scenario should be handled as I've changed the class defination and now want retrive the object but it's stored as per the old class defination.
+Pie Number of slices to send: Send
Googling java serialization version control might help.
+Pie Number of slices to send: Send
Duplicate of this thread. Locking this one, please continue the discussion on the other thread.
Maybe he went home and went to bed. And took this tiny ad with him:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


Reply locked
This thread has been viewed 622 times.
Similar Threads
How to deserialize persistent object if class has changed
Ejb3 unit testing
SERIALIZABLE INTERFACE
tansient variable
serialization
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:56:18.