I have structure of my entity like this
To give a bit of background, the attributes class B and class C were previously two enums which were being stored with String datatype. But now, the data model is modified and String datatype has been changed to object references Class B and Class C.
I have to write a migration script for the existing data present in db to remove the String datatype and make them point to other object class B, class C.
Can you help.