basedao and Inheritance