Class AcrossHibernateJpaModule
java.lang.Object
com.foreach.across.core.context.AbstractAcrossEntity
com.foreach.across.core.AcrossModule
com.foreach.across.modules.hibernate.AbstractHibernatePackageModule
com.foreach.across.modules.hibernate.jpa.AcrossHibernateJpaModule
- All Implemented Interfaces:
com.foreach.across.core.context.AcrossEntity
,com.foreach.across.core.context.AcrossModuleEntity
Enables JPA support using Hibernate as the implementation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for creating a customAcrossHibernateJpaModule
. -
Field Summary
Fields inherited from class com.foreach.across.core.AcrossModule
CURRENT_MODULE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create the specific settings implementation instance for property binding.getName()
void
prepareForBootstrap
(com.foreach.across.core.context.bootstrap.ModuleBootstrapConfig currentModule, com.foreach.across.core.context.bootstrap.AcrossBootstrapConfig contextConfig) protected void
registerDefaultApplicationContextConfigurers
(Set<com.foreach.across.core.context.configurer.ApplicationContextConfigurer> contextConfigurers) protected final void
setPersistenceUnitName
(String persistenceUnitName) final void
setPrimary
(Boolean primary) Configure this module as primary: makes some exposed beans primary and will attempt to register aliases for the transaction manager and transaction template.Methods inherited from class com.foreach.across.modules.hibernate.AbstractHibernatePackageModule
addHibernatePackageProvider, getDataSource, getDataSourceName, getHibernatePackageProviders, getHibernateProperties, getPropertiesPrefix, isScanForHibernatePackages, setDataSource, setDataSourceName, setHibernatePackageProviders, setHibernateProperties, setHibernateProperty, setPropertiesPrefix, setScanForHibernatePackages
Methods inherited from class com.foreach.across.core.AcrossModule
addApplicationContextConfigurer, addApplicationContextConfigurer, addInstallerContextConfigurer, addInstallerContextConfigurer, addPropertySources, addPropertySources, addRuntimeDependency, equals, expose, expose, exposeClass, getApplicationContextConfigurers, getContext, getExposeFilter, getExposeTransformer, getExtensionTargets, getInstallerContextConfigurers, getInstallers, getInstallerScanPackages, getInstallerSettings, getModuleConfigurationScanPackages, getResourcesKey, getRuntimeDependencies, getVersionInfo, hashCode, isEnabled, registerDefaultInstallerContextConfigurers, setContext, setEnabled, setExposeFilter, setExposeTransformer, setInstallerSettings, toString
Methods inherited from class com.foreach.across.core.context.AbstractAcrossEntity
addPropertySources, getAcrossApplicationContextHolder, getProperties, hasApplicationContext, setAcrossApplicationContextHolder, setProperties, setProperty
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
AcrossHibernateJpaModule
public AcrossHibernateJpaModule() -
AcrossHibernateJpaModule
-
-
Method Details
-
getName
- Specified by:
getName
in interfacecom.foreach.across.core.context.AcrossModuleEntity
- Specified by:
getName
in classcom.foreach.across.core.AcrossModule
-
getDescription
- Overrides:
getDescription
in classcom.foreach.across.core.AcrossModule
-
setPersistenceUnitName
-
setPrimary
Configure this module as primary: makes some exposed beans primary and will attempt to register aliases for the transaction manager and transaction template.- Parameters:
primary
- or not
-
createSettings
Description copied from class:AbstractHibernatePackageModule
Create the specific settings implementation instance for property binding. Override this method if a module wants to use an extended settings class.- Overrides:
createSettings
in classAbstractHibernatePackageModule
- Returns:
- a new instance for property binding
-
registerDefaultApplicationContextConfigurers
protected void registerDefaultApplicationContextConfigurers(Set<com.foreach.across.core.context.configurer.ApplicationContextConfigurer> contextConfigurers) - Overrides:
registerDefaultApplicationContextConfigurers
in classcom.foreach.across.core.AcrossModule
-
prepareForBootstrap
public void prepareForBootstrap(com.foreach.across.core.context.bootstrap.ModuleBootstrapConfig currentModule, com.foreach.across.core.context.bootstrap.AcrossBootstrapConfig contextConfig) - Overrides:
prepareForBootstrap
in classcom.foreach.across.core.AcrossModule
-
builder
- Returns:
- a builder for a custom
AcrossHibernateJpaModule
-