Class AcrossHibernateJpaModuleSettings
java.lang.Object
org.springframework.boot.autoconfigure.orm.jpa.JpaProperties
com.foreach.across.modules.hibernate.AcrossHibernateModuleSettings
com.foreach.across.modules.hibernate.jpa.AcrossHibernateJpaModuleSettings
@ConfigurationProperties("across-hibernate")
public class AcrossHibernateJpaModuleSettings
extends AcrossHibernateModuleSettings
-
Nested Class Summary
Nested classes/interfaces inherited from class com.foreach.across.modules.hibernate.AcrossHibernateModuleSettings
AcrossHibernateModuleSettings.ApplicationModule, AcrossHibernateModuleSettings.PersistenceContextInViewProperties
-
Field Summary
Fields inherited from class com.foreach.across.modules.hibernate.AcrossHibernateModuleSettings
ADVANCED_DTO_CONVERSION, CREATE_UNITOFWORK_FACTORY, HIBERNATE_PROPERTIES, PERSISTENCE_CONTEXT_VIEW_HANDLER, PERSISTENCE_CONTEXT_VIEW_HANDLER_ORDER, REGISTER_REPOSITORY_INTERCEPTOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Name of the persistence unit that is being managed by this module.Should this module register itsPlatformTransactionManager
,TransactionTemplate
andHibernateSessionHolder
as primary when exposing.int
hashCode()
void
setPersistenceUnitName
(String persistenceUnitName) Name of the persistence unit that is being managed by this module.void
setPrimary
(Boolean primary) Should this module register itsPlatformTransactionManager
,TransactionTemplate
andHibernateSessionHolder
as primary when exposing.toString()
Methods inherited from class com.foreach.across.modules.hibernate.AcrossHibernateModuleSettings
getApplicationModule, getDataSource, getHibernate, getHibernateProperties, getHibernateProperties, getPersistenceContextInView, getTransactionProperties, isAdvancedDtoConversion, isCreateUnitOfWorkFactory, isOpenInView, isRegisterRepositoryInterceptor, setAdvancedDtoConversion, setApplicationModule, setCreateUnitOfWorkFactory, setDataSource, setHibernate, setHibernateProperties, setPersistenceContextInView, setRegisterRepositoryInterceptor, setTransactionProperties
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
-
PERSISTENCE_UNIT_NAME
- See Also:
-
PRIMARY
- See Also:
-
-
Constructor Details
-
AcrossHibernateJpaModuleSettings
public AcrossHibernateJpaModuleSettings()
-
-
Method Details
-
getPersistenceUnitName
Name of the persistence unit that is being managed by this module. Defaults to the module name. -
getPrimary
Should this module register itsPlatformTransactionManager
,TransactionTemplate
andHibernateSessionHolder
as primary when exposing. If set totrue
this will also register the default aliases for thePlatformTransactionManager
andTransactionTemplate
. If not set explicitly, this will betrue
by default for the standardAcrossHibernateJpaModule
(with the module nameAcrossHibernateJpaModule
) or in case of the module being the only one in an entire Across context. -
setPersistenceUnitName
Name of the persistence unit that is being managed by this module. Defaults to the module name. -
setPrimary
Should this module register itsPlatformTransactionManager
,TransactionTemplate
andHibernateSessionHolder
as primary when exposing. If set totrue
this will also register the default aliases for thePlatformTransactionManager
andTransactionTemplate
. If not set explicitly, this will betrue
by default for the standardAcrossHibernateJpaModule
(with the module nameAcrossHibernateJpaModule
) or in case of the module being the only one in an entire Across context. -
toString
- Overrides:
toString
in classAcrossHibernateModuleSettings
-
equals
- Overrides:
equals
in classAcrossHibernateModuleSettings
-
canEqual
- Overrides:
canEqual
in classAcrossHibernateModuleSettings
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAcrossHibernateModuleSettings
-