reladomo icon indicating copy to clipboard operation
reladomo copied to clipboard

Backward compatibility not preserved after changing the schema

Open rootid opened this issue 3 years ago • 1 comments

If I update the existing XML schema file. The newly generated Finder class will generate a class with a new serialVersionId and thus breaking the Backward compatibility. https://github.com/goldmansachs/reladomo/blob/master/reladomogen/src/main/templates/readonly/Finder.jsp#L783

rootid avatar Jun 16 '21 16:06 rootid

If you change the schema in a significant way, for example, removing an attribute, then the class is not backward compatible for serialization. There is no point pretending it is, is there?

mohrezaei avatar Jun 16 '21 16:06 mohrezaei