【JEECG技术文档】MiniDao支持ID自增主键策略,使用讲解
http://img.blog.csdn.net/20180227152258546?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvemhhbmdkYWlzY290dA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70
用法示例: view plain copy
[*]/**
[*]* 插入数据(ID采用自增策略,并返回自增ID)
[*]* @param employee
[*]*/
[*]@IdAutoGenerator(generator="native")
[*]int insertNative(@Param("employee") Employee employee);
用法说明: view plain copy
[*]1. 增加ID标签注解
[*]2. 返回类型设置int类型
Maven依赖: view plain copy
[*]<dependency>
[*]<groupId>org.jeecgframework</groupId>
[*]<artifactId>minidao-pe</artifactId>
[*]<version>1.6.1</version>
[*]</dependency>
[*]
页:
[1]