Class DinoDataJdbcConfiguration

java.lang.Object
org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
cn.dinodev.spring.data.autoconfig.DinoDataJdbcConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Configuration(proxyBeanMethods=false) public class DinoDataJdbcConfiguration extends org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
Author:
Cody Lu
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    dialect(org.springframework.jdbc.core.JdbcOperations jdbcOperations)
     
    org.springframework.data.jdbc.core.convert.JdbcCustomConversions
     
    org.springframework.data.jdbc.core.mapping.JdbcMappingContext
    jdbcMappingContext(Optional<org.springframework.data.relational.core.mapping.NamingStrategy> namingStrategy, org.springframework.data.jdbc.core.convert.JdbcCustomConversions customConversions, org.springframework.data.relational.RelationalManagedTypes jdbcManagedTypes)
     
    protected Set<Class<?>>
    scanForEntities(String basePackage)
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     
    protected List<?>
     

    Methods inherited from class org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration

    dataAccessStrategyBean, getInitialEntitySet, getMappingBasePackages, jdbcAggregateTemplate, jdbcConverter, jdbcDialect, jdbcManagedTypes

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DinoDataJdbcConfiguration

      public DinoDataJdbcConfiguration()
  • Method Details

    • dialect

      @Bean @ConditionalOnMissingBean public Dialect dialect(org.springframework.jdbc.core.JdbcOperations jdbcOperations)
    • jdbcMappingContext

      public org.springframework.data.jdbc.core.mapping.JdbcMappingContext jdbcMappingContext(Optional<org.springframework.data.relational.core.mapping.NamingStrategy> namingStrategy, org.springframework.data.jdbc.core.convert.JdbcCustomConversions customConversions, org.springframework.data.relational.RelationalManagedTypes jdbcManagedTypes)
      Overrides:
      jdbcMappingContext in class org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
    • userConverters

      protected List<?> userConverters()
      Overrides:
      userConverters in class org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
    • jdbcCustomConversions

      @Bean public org.springframework.data.jdbc.core.convert.JdbcCustomConversions jdbcCustomConversions()
      Overrides:
      jdbcCustomConversions in class org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
    • scanForEntities

      protected Set<Class<?>> scanForEntities(String basePackage)
      Overrides:
      scanForEntities in class org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Overrides:
      setApplicationContext in class org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
      Throws:
      org.springframework.beans.BeansException