In the database there will be a table for the base entity and all inherited entities. The base entity has a column indicating the 'object' type. Also the primary key is identical in base en inherited entity tables. All this is handled by the platform for you, so no event handlers.
One thing to know is that when deleting an inherited entity in the modeler the records of that entity are also deleted in the base entities table. They are strictly separated.