We are using JAXB to store serialized objects in a JCR. The XML files use versioned schemas. Obviously the classes of the objects will change eventually, so we'll have newer schema versions.
How can we automatically migrate the old stored objects to their newer versions? Does JAXB offer any support there or is it the wrong soultion? Currently we are using XSLT scripts to convert the XML files, but it would of course be much nicer if we could automagically create new object versions from the old serialized objects.
Expected changes to the objects can be everything: additions or removal of members, renaming of members and type changes of members.