Class HibernatePropertiesProviderImpl

java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.bootstrap.HibernatePropertiesProviderImpl
All Implemented Interfaces:
HibernatePropertiesProvider

@Component public class HibernatePropertiesProviderImpl extends Object implements HibernatePropertiesProvider
Loads hibernate configuration properties from *.properties files.
  • Constructor Details

  • Method Details

    • setSqlLoggingEnabled

      @Value("${nice2.persist.enableSqlLogging}") public void setSqlLoggingEnabled(boolean sqlLoggingEnabled)
    • getCustomProperties

      public Map<String,Object> getCustomProperties()
      Description copied from interface: HibernatePropertiesProvider
      Provide the necessary properties required for the hibernate set-up.
      Specified by:
      getCustomProperties in interface HibernatePropertiesProvider
      Returns:
      a map with all the properties