We use JDO in one of our projects. This works for quite some time, and naturally we need to change the model a bit.
What is the best practice when moving fields in entity classes in JDO?
enum MyEnum { REGULAR, MYOLDTYPE // Delete this } @PersistenceCapable public class Entity { @Persistent MyEnum myEnumType; @Persistent String myString; // Rename this }
If I delete the enumeration value, there will be an exception if it is already saved when loading from the database, how to transfer this?
If I would like to rename myString to myNewString, how to rename a column to a new name?
source share