Class MyBatisJdbcConfiguration
java.lang.Object
org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
org.springframework.data.jdbc.repository.config.MyBatisJdbcConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Configuration(proxyBeanMethods=false)
public class MyBatisJdbcConfiguration
extends AbstractJdbcConfiguration
Configuration class tweaking Spring Data JDBC to use a
MyBatisDataAccessStrategy
instead of the default one.- Since:
- 1.1
- Author:
- Oliver Drotbohm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondataAccessStrategyBean
(org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations operations, JdbcConverter jdbcConverter, JdbcMappingContext context, Dialect dialect) Methods inherited from class org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
getInitialEntitySet, getMappingBasePackages, jdbcAggregateTemplate, jdbcConverter, jdbcCustomConversions, jdbcDialect, jdbcManagedTypes, jdbcMappingContext, scanForEntities, setApplicationContext, userConverters
-
Constructor Details
-
MyBatisJdbcConfiguration
public MyBatisJdbcConfiguration()
-
-
Method Details
-
dataAccessStrategyBean
@Bean public DataAccessStrategy dataAccessStrategyBean(org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations operations, JdbcConverter jdbcConverter, JdbcMappingContext context, Dialect dialect) Description copied from class:AbstractJdbcConfiguration
Create aDataAccessStrategy
for reuse in theJdbcAggregateOperations
and theJdbcConverter
. Override this method to register a bean of typeDataAccessStrategy
if your use case requires a more specializedDataAccessStrategy
.- Overrides:
dataAccessStrategyBean
in classAbstractJdbcConfiguration
- Returns:
- will never be null.
-