Removing inheritance

1
I have an object A and B, and B derives from object A. Because of optimization we moved all attributes from B to A and copy it one level up with a microflow. After that we removed all attributes from object B. So B is not longer used and should be removed. However when I remove B from the domainmodel all existing data is removed from object A. I know, that's most times the desired behaviour. But in this case not, I want to keep my A objects.
asked
2 answers
1

This is probably caused by the ID's in the link table. You could try and remove the data from the AB-link table and then delete the B entity. The removal of the data should then be done in the database of course. I don't however know this would/could cause side effects.

answered
1

Just to be save (and you can never be safe enough when it comes to database conversions)I would create a temporary entity with the same attributes as A, and move all objects to that entity. Than delete object B, this will clear object A. Finally, move all objects from the temporary entity to object A and delete the temporary entity.

answered