Class AcrossHibernateModuleSettings
java.lang.Object
org.springframework.boot.autoconfigure.orm.jpa.JpaProperties
com.foreach.across.modules.hibernate.AcrossHibernateModuleSettings
- Direct Known Subclasses:
 AcrossHibernateJpaModuleSettings
public class AcrossHibernateModuleSettings
extends org.springframework.boot.autoconfigure.orm.jpa.JpaProperties
- Author:
 - Arne Vandamme
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanName of the dataSource bean that should be resolved and used for the entity manager.org.springframework.boot.autoconfigure.orm.jpa.HibernatePropertiesDeprecated.getHibernateProperties(org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings hibernateSettings) Get the merged set of Hibernate properties for the datasource.org.springframework.boot.autoconfigure.transaction.TransactionPropertiesinthashCode()booleanConfigures a more advanced conversion forDtoUtils.createDto(Object)using Dozer.booleanShould a UnitOfWorkFactory be created.booleanbooleanShould common Repository implementations in modules automatically be intercepted.voidsetAdvancedDtoConversion(boolean advancedDtoConversion) Configures a more advanced conversion forDtoUtils.createDto(Object)using Dozer.voidsetApplicationModule(AcrossHibernateModuleSettings.ApplicationModule applicationModule) voidsetCreateUnitOfWorkFactory(boolean createUnitOfWorkFactory) Should a UnitOfWorkFactory be created.voidsetDataSource(String dataSource) Name of the dataSource bean that should be resolved and used for the entity manager.voidsetHibernate(org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties hibernate) voidsetHibernateProperties(Map<String, String> hibernateProperties) Deprecated.use the more genericJpaProperties.setProperties(Map)voidsetPersistenceContextInView(AcrossHibernateModuleSettings.PersistenceContextInViewProperties persistenceContextInView) voidsetRegisterRepositoryInterceptor(boolean registerRepositoryInterceptor) Should common Repository implementations in modules automatically be intercepted.voidsetTransactionProperties(org.springframework.boot.autoconfigure.transaction.TransactionProperties transactionProperties) toString()Methods inherited from class org.springframework.boot.autoconfigure.orm.jpa.JpaProperties
getDatabase, getDatabasePlatform, getMappingResources, getOpenInView, getProperties, isGenerateDdl, isShowSql, setDatabase, setDatabasePlatform, setGenerateDdl, setOpenInView, setProperties, setShowSql 
- 
Field Details
- 
HIBERNATE_PROPERTIES
- See Also:
 
 - 
PERSISTENCE_CONTEXT_VIEW_HANDLER
- See Also:
 
 - 
PERSISTENCE_CONTEXT_VIEW_HANDLER_ORDER
- See Also:
 
 - 
CREATE_UNITOFWORK_FACTORY
- See Also:
 
 - 
REGISTER_REPOSITORY_INTERCEPTOR
- See Also:
 
 - 
ADVANCED_DTO_CONVERSION
- See Also:
 
 
 - 
 - 
Constructor Details
- 
AcrossHibernateModuleSettings
public AcrossHibernateModuleSettings() 
 - 
 - 
Method Details
- 
isOpenInView
public boolean isOpenInView() - 
getHibernateProperties
public Map<String,Object> getHibernateProperties(org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings hibernateSettings) Get the merged set of Hibernate properties for the datasource.- Parameters:
 hibernateSettings- to detect default properties from- Returns:
 - merged properties set
 
 - 
getTransactionProperties
public org.springframework.boot.autoconfigure.transaction.TransactionProperties getTransactionProperties() - 
getHibernate
public org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties getHibernate() - 
getApplicationModule
 - 
getPersistenceContextInView
public AcrossHibernateModuleSettings.PersistenceContextInViewProperties getPersistenceContextInView() - 
getDataSource
Name of the dataSource bean that should be resolved and used for the entity manager. - 
getHibernateProperties
Deprecated.use the more genericJpaProperties.setProperties(Map)Map of Hibernate specific properties. - 
isCreateUnitOfWorkFactory
public boolean isCreateUnitOfWorkFactory()Should a UnitOfWorkFactory be created. This allows you manually manage a session. - 
isRegisterRepositoryInterceptor
public boolean isRegisterRepositoryInterceptor()Should common Repository implementations in modules automatically be intercepted. This will enable support forEntityInterceptoron the entities managed by those repositories. - 
isAdvancedDtoConversion
public boolean isAdvancedDtoConversion()Configures a more advanced conversion forDtoUtils.createDto(Object)using Dozer. This will ensure that the entire entity including it's relationships will be deep cloned. Should some relationships be lazy loaded, a proxy object will be configured that retrieves the relationship if necessary when accessed. If a lazy related property is never accessed, it will not be fetched either. - 
setTransactionProperties
public void setTransactionProperties(org.springframework.boot.autoconfigure.transaction.TransactionProperties transactionProperties)  - 
setHibernate
public void setHibernate(org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties hibernate)  - 
setApplicationModule
 - 
setPersistenceContextInView
public void setPersistenceContextInView(AcrossHibernateModuleSettings.PersistenceContextInViewProperties persistenceContextInView)  - 
setDataSource
Name of the dataSource bean that should be resolved and used for the entity manager. - 
setHibernateProperties
Deprecated.use the more genericJpaProperties.setProperties(Map)Map of Hibernate specific properties. - 
setCreateUnitOfWorkFactory
public void setCreateUnitOfWorkFactory(boolean createUnitOfWorkFactory) Should a UnitOfWorkFactory be created. This allows you manually manage a session. - 
setRegisterRepositoryInterceptor
public void setRegisterRepositoryInterceptor(boolean registerRepositoryInterceptor) Should common Repository implementations in modules automatically be intercepted. This will enable support forEntityInterceptoron the entities managed by those repositories. - 
setAdvancedDtoConversion
public void setAdvancedDtoConversion(boolean advancedDtoConversion) Configures a more advanced conversion forDtoUtils.createDto(Object)using Dozer. This will ensure that the entire entity including it's relationships will be deep cloned. Should some relationships be lazy loaded, a proxy object will be configured that retrieves the relationship if necessary when accessed. If a lazy related property is never accessed, it will not be fetched either. - 
toString
 - 
equals
 - 
canEqual
 - 
hashCode
public int hashCode() 
 - 
 
JpaProperties.setProperties(Map)