Example usage for org.apache.ibatis.type UnknownTypeHandler UnknownTypeHandler

List of usage examples for org.apache.ibatis.type UnknownTypeHandler UnknownTypeHandler

Introduction

In this page you can find the example usage for org.apache.ibatis.type UnknownTypeHandler UnknownTypeHandler.

Prototype

@Deprecated
public UnknownTypeHandler(TypeHandlerRegistry typeHandlerRegistry) 

Source Link

Document

The constructor that pass the type handler registry.

Usage

From source file:com.baomidou.mybatisplus.plugins.OptimisticLockerInterceptor.java

License:Apache License

private ParameterMapping getVersionMappingInstance(Configuration configuration) {
    if (parameterMapping == null) {
        synchronized (OptimisticLockerInterceptor.class) {
            if (parameterMapping == null) {
                parameterMapping = new ParameterMapping.Builder(configuration, "originVersionValue",
                        new UnknownTypeHandler(configuration.getTypeHandlerRegistry())).build();
            }//from w w  w .  j  av  a  2s.c om
        }
    }
    return parameterMapping;
}