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

public class AcrossHibernateJpaModule extends AbstractHibernatePackageModule
Enables JPA support using Hibernate as the implementation.
  • Field Details

  • Constructor Details

    • AcrossHibernateJpaModule

      public AcrossHibernateJpaModule()
    • AcrossHibernateJpaModule

      public AcrossHibernateJpaModule(DataSource dataSource)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface com.foreach.across.core.context.AcrossModuleEntity
      Specified by:
      getName in class com.foreach.across.core.AcrossModule
    • getDescription

      public String getDescription()
      Overrides:
      getDescription in class com.foreach.across.core.AcrossModule
    • setPersistenceUnitName

      protected final void setPersistenceUnitName(String persistenceUnitName)
    • setPrimary

      public 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.
      Parameters:
      primary - or not
    • createSettings

      public AcrossHibernateJpaModuleSettings 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 class AbstractHibernatePackageModule
      Returns:
      a new instance for property binding
    • registerDefaultApplicationContextConfigurers

      protected void registerDefaultApplicationContextConfigurers(Set<com.foreach.across.core.context.configurer.ApplicationContextConfigurer> contextConfigurers)
      Overrides:
      registerDefaultApplicationContextConfigurers in class com.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 class com.foreach.across.core.AcrossModule
    • builder

      Returns:
      a builder for a custom AcrossHibernateJpaModule