public interface UseGenerateKeyInsertMapper<T>
| Modifier and Type | Method and Description |
|---|---|
int |
useGenerateKeyInsert(T record)
保存一个实体,null的属性也会保存,不会使用数据库默认值
|
int |
useGenerateKeyInsertSelective(T record)
使用可返回主键的方法插入;
|
@Options(useGeneratedKeys=true,
keyProperty="id")
@InsertProvider(type=UseGenerateKeyInsertProvider.class,
method="dynamicSQL")
int useGenerateKeyInsertSelective(T record)
record - @Options(useGeneratedKeys=true,
keyProperty="id")
@InsertProvider(type=UseGenerateKeyInsertProvider.class,
method="dynamicSQL")
int useGenerateKeyInsert(T record)
record - Copyright © 2021. All rights reserved.