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
  • Field Details

  • Constructor Details

    • AcrossHibernateJpaModuleSettings

      public AcrossHibernateJpaModuleSettings()
  • Method Details

    • getPersistenceUnitName

      public String getPersistenceUnitName()
      Name of the persistence unit that is being managed by this module. Defaults to the module name.
    • getPrimary

      public Boolean getPrimary()
      Should this module register its PlatformTransactionManager, TransactionTemplate and HibernateSessionHolder as primary when exposing.

      If set to true this will also register the default aliases for the PlatformTransactionManager and TransactionTemplate.

      If not set explicitly, this will be true by default for the standard AcrossHibernateJpaModule (with the module name AcrossHibernateJpaModule) or in case of the module being the only one in an entire Across context.

    • setPersistenceUnitName

      public void setPersistenceUnitName(String persistenceUnitName)
      Name of the persistence unit that is being managed by this module. Defaults to the module name.
    • setPrimary

      public void setPrimary(Boolean primary)
      Should this module register its PlatformTransactionManager, TransactionTemplate and HibernateSessionHolder as primary when exposing.

      If set to true this will also register the default aliases for the PlatformTransactionManager and TransactionTemplate.

      If not set explicitly, this will be true by default for the standard AcrossHibernateJpaModule (with the module name AcrossHibernateJpaModule) or in case of the module being the only one in an entire Across context.

    • toString

      public String toString()
      Overrides:
      toString in class AcrossHibernateModuleSettings
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AcrossHibernateModuleSettings
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class AcrossHibernateModuleSettings
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AcrossHibernateModuleSettings