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
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Name of the dataSource bean that should be resolved and used for the entity manager.org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties
Deprecated.getHibernateProperties
(org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings hibernateSettings) Get the merged set of Hibernate properties for the datasource.org.springframework.boot.autoconfigure.transaction.TransactionProperties
int
hashCode()
boolean
Configures a more advanced conversion forDtoUtils.createDto(Object)
using Dozer.boolean
Should a UnitOfWorkFactory be created.boolean
boolean
Should common Repository implementations in modules automatically be intercepted.void
setAdvancedDtoConversion
(boolean advancedDtoConversion) Configures a more advanced conversion forDtoUtils.createDto(Object)
using Dozer.void
setApplicationModule
(AcrossHibernateModuleSettings.ApplicationModule applicationModule) void
setCreateUnitOfWorkFactory
(boolean createUnitOfWorkFactory) Should a UnitOfWorkFactory be created.void
setDataSource
(String dataSource) Name of the dataSource bean that should be resolved and used for the entity manager.void
setHibernate
(org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties hibernate) void
setHibernateProperties
(Map<String, String> hibernateProperties) Deprecated.use the more genericJpaProperties.setProperties(Map)
void
setPersistenceContextInView
(AcrossHibernateModuleSettings.PersistenceContextInViewProperties persistenceContextInView) void
setRegisterRepositoryInterceptor
(boolean registerRepositoryInterceptor) Should common Repository implementations in modules automatically be intercepted.void
setTransactionProperties
(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 forEntityInterceptor
on 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 forEntityInterceptor
on 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)