Mybatis-Generator高阶用法,彻底告别Sql语句!
作者:
烛火下的乌托邦丶 | 来源:发表于
2018-07-18 14:20 被阅读0次
先贴个逆向工程出来的mapper
/**
* Created by Mybatis Generator 2018/07/15 14:14
*/
public interface EmployeeMapper {
long countByExample(EmployeeExample example);
int deleteByExample(EmployeeExample example);
int deleteByPrimaryKey(Long id);
int insert(Employee entity);
int insertSelective(Employee entity);
List<Employee> selectByExample(EmployeeExample example);
Employee selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Employee record, @Param("example") EmployeeExample example);
int updateByExample(@Param("record") Employee record, @Param("example") EmployeeExample example);
int updateByPrimaryKeySelective(Employee entity);
int updateByPrimaryKey(Employee entity);
}
想知道这些多出来的方法有什么用吗 ? 想要花一分钟学会这个骚操作吗 , 点下面链接直达教程哈哈哈
赞美李哥
https://www.jianshu.com/p/0155be036298
本文标题:Mybatis-Generator高阶用法,彻底告别Sql语句!
本文链接:https://www.haomeiwen.com/subject/sipopftx.html
网友评论