org.springframework.boot.autoconfigure.orm.jpa

Class JpaProperties



  • @ConfigurationProperties(prefix="spring.jpa")
    public class JpaProperties
    extends Object
    External configuration properties for a JPA EntityManagerFactory created by Spring.
    Since:
    1.1.0
    Author:
    Dave Syer, Andy Wilkinson, Stephane Nicoll, EddĂș MelĂ©ndez, Madhura Bhave
    • Constructor Detail

      • JpaProperties

        public JpaProperties()
    • Method Detail

      • setProperties

        public void setProperties(Map<String,String> properties)
      • getMappingResources

        public List<String> getMappingResources()
      • getDatabasePlatform

        public String getDatabasePlatform()
      • setDatabasePlatform

        public void setDatabasePlatform(String databasePlatform)
      • getDatabase

        public Database getDatabase()
      • setDatabase

        public void setDatabase(Database database)
      • isGenerateDdl

        public boolean isGenerateDdl()
      • setGenerateDdl

        public void setGenerateDdl(boolean generateDdl)
      • isShowSql

        public boolean isShowSql()
      • setShowSql

        public void setShowSql(boolean showSql)
      • getOpenInView

        public Boolean getOpenInView()
      • setOpenInView

        public void setOpenInView(Boolean openInView)
      • getHibernateProperties

        public Map<String,Object> getHibernateProperties(HibernateSettings settings)
        Get configuration properties for the initialization of the main Hibernate EntityManagerFactory.
        Parameters:
        settings - the settings to apply when determining the configuration properties
        Returns:
        some Hibernate properties for configuration
      • determineDatabase

        public Database determineDatabase(DataSource dataSource)
        Determine the Database to use based on this configuration and the primary DataSource.
        Parameters:
        dataSource - the auto-configured data source
        Returns:
        Database