base classes for mybatis