T - 不能为空public interface InsertListMapper<T>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
insertList(List<T> recordList)
批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等,另外该接口限制实体包含`id`属性并且必须为自增列
|
@Options(useGeneratedKeys=true,
keyProperty="id")
@InsertProvider(type=SpecialProvider.class,
method="dynamicSQL")
int insertList(List<T> recordList)
recordList - Copyright © 2017. All rights reserved.