Java Code Examples for tk.mybatis.mapper.entity.Config#setSafeDelete()

The following examples show how to use tk.mybatis.mapper.entity.Config#setSafeDelete() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SafeDeleteByMethodTest.java    From Mapper with MIT License 5 votes vote down vote up
@Override
protected Config getConfig() {
    Config config = super.getConfig();
    config.setSafeDelete(true);
    //和 SafeDeleteByFieldTest 测试的区别在此,这里将会使后面调用 EntityField.getValue 时,使用 getter 方法获取值
    config.setEnableMethodAnnotation(true);
    return config;
}
 
Example 2
Source File: IdListMapperTest.java    From Mapper with MIT License 5 votes vote down vote up
@Override
protected Config getConfig() {
    Config config = super.getConfig();
    //安全删除
    config.setSafeDelete(true);
    return config;
}
 
Example 3
Source File: SafeDeleteByFieldTest.java    From Mapper with MIT License 4 votes vote down vote up
@Override
protected Config getConfig() {
    Config config = super.getConfig();
    config.setSafeDelete(true);
    return config;
}