Persitence

Hi,

I am writing a java application and need to persistently store the data i am creating. My problem is that during development, the objects I am storing may change and could cause serialization errors.

Does anyone have any opinions on the best way to persistently store data. I have looked at Serialization/Externalization and storing as an XML form. Each having their pros and cons.

Just wondering what other developers think on this subject. Let the debate begin.

wwe8

[511 byte] By [wwe8] at [2007-9-26 2:19:49]
# 1

You can use SerialversionUID. If you keep this number the same, you can change the inner workings of an object, yet have it compatible between versions. Be careful not to change any method signatures, it could cause trouble.

You can use the "servialver" tool to generate the SerialversionUID.

scooterj at 2007-6-29 9:22:47 > top of Java-index,Core,Core APIs...