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 Summary
ConstructorDescriptionHibernatePropertiesProviderImpl
(DefaultHibernateConfiguration hibernateConfiguration, HibernateBeanContainer beanContainer) -
Method Summary
Modifier and TypeMethodDescriptionProvide the necessary properties required for the hibernate set-up.void
setSqlLoggingEnabled
(boolean sqlLoggingEnabled) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.hibernate.HibernatePropertiesProvider
getProperties
-
Constructor Details
-
HibernatePropertiesProviderImpl
public HibernatePropertiesProviderImpl(DefaultHibernateConfiguration hibernateConfiguration, HibernateBeanContainer beanContainer)
-
-
Method Details
-
setSqlLoggingEnabled
@Value("${nice2.persist.enableSqlLogging}") public void setSqlLoggingEnabled(boolean sqlLoggingEnabled) -
getCustomProperties
Description copied from interface:HibernatePropertiesProvider
Provide the necessary properties required for the hibernate set-up.- Specified by:
getCustomProperties
in interfaceHibernatePropertiesProvider
- Returns:
- a map with all the properties
-