Replies: 2 comments
-
Hi,
Another option would be to implement a custom LegacyTypeHandler that does the required mapping, but this is a quite complex task. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer.
I think data migration between modifications of DataRoot classes is very important. Ideally it would feature defined data migration in some way as Flyway does it for DBs. In your example you execute the migration code manually at application start. That's ok for data migration of one alteration. But consider the use-case where the persisted data lacks several iterations behind the modified DataRoot definition in the application code. Then you would benefit from the Flyway approach as the data state is checked and then only the exactly required data migrations are done in the right order. (edit: minor clarification) |
Beta Was this translation helpful? Give feedback.
-
In my usecase the automatic data migration did not work. Here, my "User" List was changed to a Map, where the key has to be set to the User.id:
How can I migrate my EclipseStore data where some new Data has to be set/calculated?
Beta Was this translation helpful? Give feedback.
All reactions