public class MybatisRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
extends org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
implements org.springframework.context.ApplicationEventPublisherAware
FactoryBean interface to allow easy setup of
repository factories via Spring configuration.| 限定符 | 构造器和说明 |
|---|---|
protected |
MybatisRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Creates a new
MybatisRepositoryFactoryBean for the given repository interface. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
doCreateRepositoryFactory()
Creates the actual
RepositoryFactorySupport instance. |
protected void |
setDialect(org.springframework.data.relational.core.dialect.Dialect dialect) |
protected void |
setMappingContext(org.springframework.data.relational.core.mapping.RelationalMappingContext mappingContext) |
protected void |
setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) |
createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManageraddRepositoryFactoryCustomizer, afterPropertiesSet, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentsprotected MybatisRepositoryFactoryBean(Class<? extends T> repositoryInterface)
MybatisRepositoryFactoryBean for the given repository interface.repositoryInterface - must not be null.protected org.springframework.data.repository.core.support.RepositoryFactorySupport doCreateRepositoryFactory()
RepositoryFactorySupport instance.@Autowired protected void setMappingContext(org.springframework.data.relational.core.mapping.RelationalMappingContext mappingContext)
@Autowired protected void setDialect(org.springframework.data.relational.core.dialect.Dialect dialect)
@Autowired protected void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
Copyright © 2022. All rights reserved.