Inheritance with a base entity class