接口 InsertUseGeneratedKeysMapper<T>

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

    public interface InsertUseGeneratedKeysMapper<T>
    通用Mapper接口,特殊方法,批量插入,支持批量插入的数据库都可以使用,例如mysql,h2等
    作者:
    liuzh
    • 方法详细资料

      • insertUseGeneratedKeys

        @Options(useGeneratedKeys=true)
        @InsertProvider(type=SpecialProvider.class,
                        method="dynamicSQL")
        int insertUseGeneratedKeys​(T record)
        插入数据,限制为实体包含`id`属性并且必须为自增列,实体配置的主键策略无效
        参数:
        record -
        返回: