Interface InsertSelectiveMapper<T>

Type Parameters:
T - 泛型
All Known Subinterfaces:
BasicInsertMapper<T>, BasicMapper<T>, Mapper<T>

public interface InsertSelectiveMapper<T>
通用Mapper接口,插入
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    保存一个实体,null的属性不会保存,会使用数据库默认值
  • Method Details

    • insertSelective

      @InsertProvider(type=BasicInsertProvider.class, method="dynamicSQL") int insertSelective(T record)
      保存一个实体,null的属性不会保存,会使用数据库默认值
      Parameters:
      record - 泛型对象
      Returns:
      the int 操作结果