public class Statements extends Object
Statement
that is to be used by SimpleMybatisRepository.Statement,
AbstractStatement| 构造器和说明 |
|---|
Statements() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
configure(org.apache.ibatis.session.Configuration config,
Class<?> repositoryType,
Class<?> domainType,
org.springframework.data.relational.core.mapping.RelationalMappingContext mappingContext,
org.springframework.data.relational.core.dialect.Dialect dialect)
Configure default
ResultMaps and MappedStatements for mybatis. |
static void |
configureDefaultResultMap(org.apache.ibatis.session.Configuration config,
String namespace,
org.springframework.data.relational.core.mapping.RelationalMappingContext mappingContext,
Class<?> domainType) |
public static void configure(org.apache.ibatis.session.Configuration config,
Class<?> repositoryType,
Class<?> domainType,
org.springframework.data.relational.core.mapping.RelationalMappingContext mappingContext,
org.springframework.data.relational.core.dialect.Dialect dialect)
ResultMaps and MappedStatements for mybatis.
Normally, this method should be called before adding "other mybatis Mappers" to mybatis configuration,
so that "default resultMaps" added by this method can be used by resolving "other mybatis Mappers"' query methods.config - Mybatis configurationrepositoryType - Subclass type of MybatisRepositorydomainType - Domain type for MybatisRepositorymappingContext - RelationalMappingContextdialect - Implementation of DialectCopyright © 2022. All rights reserved.