Adding code for mybatis