Mybatis-Generator高阶用法,彻底告别Sql语句!
2018-07-18 本文已影响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);
}