Example usage for org.springframework.orm.jpa JpaVendorAdapter postProcessEntityManagerFactory

List of usage examples for org.springframework.orm.jpa JpaVendorAdapter postProcessEntityManagerFactory

Introduction

In this page you can find the example usage for org.springframework.orm.jpa JpaVendorAdapter postProcessEntityManagerFactory.

Prototype

default void postProcessEntityManagerFactory(EntityManagerFactory emf) 

Source Link

Document

Optional callback for post-processing the native EntityManagerFactory before active use.

Usage

From source file:org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.java

private EntityManagerFactory buildNativeEntityManagerFactory() {
    EntityManagerFactory emf = createNativeEntityManagerFactory();
    JpaVendorAdapter jpaVendorAdapter = getJpaVendorAdapter();
    if (jpaVendorAdapter != null) {
        jpaVendorAdapter.postProcessEntityManagerFactory(emf);
    }/*from   w  w  w.  j a v  a 2  s. co m*/
    if (logger.isInfoEnabled()) {
        logger.info(
                "Initialized JPA EntityManagerFactory for persistence unit '" + getPersistenceUnitName() + "'");
    }
    return emf;
}