接口 InsertMapper<T>

  • 类型参数:
    T - 不能为空
    所有已知子接口:
    SqlServerMapper<T>

    public interface InsertMapper<T>
    通用Mapper接口,插入
    作者:
    liuzh
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      int insert​(T record)
      插入数据库,`null`值也会插入,不会使用列的默认值
    • 方法详细资料

      • insert

        @Options(useGeneratedKeys=true)
        @InsertProvider(type=SqlServerProvider.class,
                        method="dynamicSQL")
        int insert​(T record)
        插入数据库,`null`值也会插入,不会使用列的默认值
        参数:
        record -
        返回: