MiniDao支持ID自增主键策略,使用讲解
- 摘要:用法示例:[java]viewplaincopy/***插入数据(ID采用自增策略,并返回自增ID)*@paramemployee*/@IdAutoGenerator(generator="native")intinsertNative(@Param("employee")Employeeemployee);用法说明:[java]viewplaincopy1.增加ID标签注解2.返回类型设置int类型Maven依赖:[html]viewplaincopy<dependency>
- 标签:使用 主键
用法示例:
[java]?view plain
?copy
?
class="dp-j">
- ?
- ?
- ?
- ??
- @IdAutoGenerator(generator="native")??
- int?insertNative(@Param("employee")?Employee?employee);??
用法说明:
[java]?view plain
?copy
?
- 1.?增加ID标签注解??
- 2.?返回类型设置int类型??
Maven依赖:
[html]?view plain
?copy
?
- <dependency>??
- ??<groupId>org.jeecgframework</groupId>??
- ??<artifactId>minidao-pe</artifactId>??
- ??<version>1.6.1</version>??
- </dependency>??
-