Interface EntityManagerFactoryCustomizer

All Known Implementing Classes:
StatementLoggingCustomizer

public interface EntityManagerFactoryCustomizer
A customizer interface for the EntityManager factories. Register an implementation of this interface as a Spring bean, and it'll be picked up automatically.

Multiple customizers could be registered and all of them will be picked up by the application.

The order in which the customizations are applied is not guaranteed.
See Also:
  • Method Details

    • additionalPackagesToScan

      default Set<String> additionalPackagesToScan()
      Additional packages to scan, for example in case of custom modules.
      Returns:
      a Set of package names, not null
    • additionalVendorProperties

      default Map<String,Object> additionalVendorProperties()
      Additional vendor properties to be passed to EclipseLink; useful in case of fine-tuning.
      Returns:
      a Set of vendor properties, not null
    • additionalPersistenceUnitPostProcessors

      default Set<org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessor> additionalPersistenceUnitPostProcessors()
      Additional PersistenceUnitPostProcessor configuration in case customizations are required.
      Returns:
      Set of PersistenceUnitPostProcessors, not null