tk.mybatis.mapper.provider.SpecialProvider Java Examples

The following examples show how to use tk.mybatis.mapper.provider.SpecialProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BaseMapper.java    From jvue-admin with MIT License 4 votes vote down vote up
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
@InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
int insertList(List<T> recordList);
 
Example #2
Source File: InsertUseGeneratedKeysMapper.java    From tk-mybatis with MIT License 2 votes vote down vote up
/**
 * 插入数据,限制为实体包含`id`属性并且必须为自增列,实体配置的主键策略无效
 *
 * @param record
 * @return
 */
@Options(useGeneratedKeys = true, keyProperty = "id")
@InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
int insertUseGeneratedKeys(T record);
 
Example #3
Source File: InsertListMapper.java    From tk-mybatis with MIT License 2 votes vote down vote up
/**
 * 批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等,另外该接口限制实体包含`id`属性并且必须为自增列
 *
 * @param recordList
 * @return
 */
@Options(useGeneratedKeys = true, keyProperty = "id")
@InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
int insertList(List<T> recordList);
 
Example #4
Source File: InsertUseGeneratedKeysMapper.java    From Mapper with MIT License 2 votes vote down vote up
/**
 * 插入数据,限制为实体包含`id`属性并且必须为自增列,实体配置的主键策略无效
 *
 * @param record
 * @return
 */
@Options(useGeneratedKeys = true)
@InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
int insertUseGeneratedKeys(T record);
 
Example #5
Source File: InsertListMapper.java    From Mapper with MIT License 2 votes vote down vote up
/**
 * 批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等,另外该接口限制实体包含`id`属性并且必须为自增列
 *
 * @param recordList
 * @return
 */
@Options(useGeneratedKeys = true)
@InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
int insertList(List<? extends T> recordList);