Refactoring Class Hierarchy

db4o does not directly support the following two refactorings:

For example:

class A

class B : A

class C : B

  1. A new Class D can not be introduced above C.
  2. Classes A and B can not be removed.

The only current possible solution for the above refactorings is a workaround:

  1. Create the new hierarchy with different names, preferably in a new package.
  2. Copy all values from the old classes to the new classes.
  3. Redirect all links from existing objects to the new classes.