Skip to content

Identical approach to implement "getSqlMapClientTemplate().execute(new SqlMapClientCallback()" in Mybatis Edit CommentAgile Board MoreReopen Issue #248

@CodeCanvas19

Description

@CodeCanvas19

Hi
We are migrating from ibatis to mybatis 3.4.4. And in ibatis we have perform execute method in below formate using sqlcallbackmethod.

getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
    public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
        executor.startBatch();
        executor.insert("TestInsert", testObject) }
        executor.executeBatch();
        return null;
    }
});

is there identical method implementation with mybatis-spring version 1.31. and mybatis version 3.4.5. This is blocker, please help.
Currently i am not able to find alternative method in mybatis document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions