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

The following examples show how to use tk.mybatis.mapper.entity.Config#setEnableMethodAnnotation() . 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: SafeUpdateByMethodTest.java    From Mapper with MIT License 5 votes vote down vote up
@Override
protected Config getConfig() {
    Config config = super.getConfig();
    config.setSafeUpdate(true);
    //和 SafeUpdateByFieldTest 测试的区别在此,这里将会使后面调用 EntityField.getValue 时,使用 getter 方法获取值
    config.setEnableMethodAnnotation(true);
    return config;
}