Search in sources :

Example 1 with Truncate

use of org.smartframework.cloud.starter.mybatis.plus.injector.methods.Truncate in project smart-cloud by smart-cloud.

the class SmartSqlInjector method getMethodList.

@Override
public List<AbstractMethod> getMethodList(Class<?> mapperClass, TableInfo tableInfo) {
    List<AbstractMethod> methodList = super.getMethodList(mapperClass, tableInfo);
    // 添加in-line式批量插入
    methodList.add(new InsertBatchSomeColumn());
    methodList.add(new Truncate(TRUNCATE_METHOD_NAME));
    return methodList;
}
Also used : AbstractMethod(com.baomidou.mybatisplus.core.injector.AbstractMethod) Truncate(org.smartframework.cloud.starter.mybatis.plus.injector.methods.Truncate) InsertBatchSomeColumn(com.baomidou.mybatisplus.extension.injector.methods.InsertBatchSomeColumn)

Aggregations

AbstractMethod (com.baomidou.mybatisplus.core.injector.AbstractMethod)1 InsertBatchSomeColumn (com.baomidou.mybatisplus.extension.injector.methods.InsertBatchSomeColumn)1 Truncate (org.smartframework.cloud.starter.mybatis.plus.injector.methods.Truncate)1