Added inheritance support for entities.