Refactoring Class Hierarchy
db4o does not directly support the following two
refactorings:
- Inserting
classes into an inheritance hierarchy.
- Removing
class from inheritance hierarchies.
For example:
class A
class B : A
class C : B
- A
new Class D can not be introduced above C.
- Classes
A and B can not be removed.
The only current possible solution for the above
refactorings is a workaround:
- Create
the new hierarchy with different names, preferably in a new package.
- Copy
all values from the old classes to the new classes.
- Redirect
all links from existing objects to the new classes.