AlexBacon wrote:
a) A framework to enable developers to quickly and easily specify the data changes as the make changes to the model (hence my thoughts were to use Java5 Annotations to do this) with an external module to extract the old data, apply the required changes, and then load it into the new schema. (Or maybe even better apply the changes in situ - but I think that is too ambitious)
This is exactly what the Migration class should be able to do. Much similar to what ROR is doing for migration...something similar should be very doable in Hibernate context. Just someone need to step up to the plate and do it ;)
btw. annotations is probably not the best thing for this...will get too crowded/db-specific I would think.
Code:
b) Some ability to validate that all required data changes have been specified as model changes occur.
hmm...how would/could you validate that ?
Code:
There is a solution of exporting all the data using JAXB (or equivalent) - applying an XSLT and then reimporting it - but that requires a complex XSLT to be written and kept in sync with model changes.
sounds veery inefficient.