用法示例:
[java]
- /**
- * 插入数据(ID采用自增策略,并返回自增ID)
- * employee
- */
- @IdAutoGenerator(generator="native")
- int insertNative(@Param("employee") Employee employee);
用法说明:
[java]
- 1. 增加ID标签注解
- 2. 返回类型设置int类型
Maven依赖:
[html]
- <dependency>
- <groupId>org.jeecgframework</groupId>
- <artifactId>minidao-pe</artifactId>
- <version>1.6.1</version>
- </dependency>