[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: object migration



Hi,

> What do people do when an object changes (a method is added or deleted) and
> data on the database needs to be migrated to this new object?

The ozone storage mechanism is based on the Java serialization. You can
change everything what it allows you to do. In general this is:

- adding new members
- adding new methods
- removing methods

You should also use the serialVersionUID to mark incompatible changes. More
details on this you'll find in the Java docu about the serialization.

Regards,
Gerd

-- 
________________________________________________________________
Gerd Mueller                               gerd@softwarebuero.de
softwarebuero m&b                    http://www.softwarebuero.de