re-build all entities and do the Inheritance