MyBatis的Mapper接口以及Example的实例函数及详解
目录 一、mapper接口中的方法解析 二、example实例解析 三、应用举例 1.查询 2.插入数据 3.更新数据 4.删除数据 5.查询数据数量 一、mapper接口中的方法解析 mapper接口中的函数及方法 方法 说明 int countByExample(UserExample example) thorws SQLException 按条件计数 int deleteByPrimaryKey(Integer id) thorws SQLException 按主键删除 int deleteByExample(UserExample example) thorws
下载地址
用户评论