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

  • 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

      public AcrossHibernateModuleSettings.ApplicationModule getApplicationModule()
    • getPersistenceContextInView

    • getDataSource

      public String getDataSource()
      Name of the dataSource bean that should be resolved and used for the entity manager.
    • getHibernateProperties

      @Deprecated public Map<String,String> getHibernateProperties()
      Deprecated.
      use the more generic JpaProperties.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 for EntityInterceptor on the entities managed by those repositories.
    • isAdvancedDtoConversion

      public boolean isAdvancedDtoConversion()
      Configures a more advanced conversion for DtoUtils.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

      public void setApplicationModule(AcrossHibernateModuleSettings.ApplicationModule applicationModule)
    • setPersistenceContextInView

      public void setPersistenceContextInView(AcrossHibernateModuleSettings.PersistenceContextInViewProperties persistenceContextInView)
    • setDataSource

      public void setDataSource(String dataSource)
      Name of the dataSource bean that should be resolved and used for the entity manager.
    • setHibernateProperties

      @Deprecated public void setHibernateProperties(Map<String,String> hibernateProperties)
      Deprecated.
      use the more generic JpaProperties.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 for EntityInterceptor on the entities managed by those repositories.
    • setAdvancedDtoConversion

      public void setAdvancedDtoConversion(boolean advancedDtoConversion)
      Configures a more advanced conversion for DtoUtils.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

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

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object