Example usage for org.springframework.orm.jpa LocalEntityManagerFactoryBean setPersistenceUnitName

List of usage examples for org.springframework.orm.jpa LocalEntityManagerFactoryBean setPersistenceUnitName

Introduction

In this page you can find the example usage for org.springframework.orm.jpa LocalEntityManagerFactoryBean setPersistenceUnitName.

Prototype

public void setPersistenceUnitName(@Nullable String persistenceUnitName) 

Source Link

Document

Specify the name of the EntityManagerFactory configuration.

Usage

From source file:spring.jpa.config.DbServiceConfig.java

@Bean
public LocalEntityManagerFactoryBean emfBean() {
    LocalEntityManagerFactoryBean e = new LocalEntityManagerFactoryBean();
    e.setPersistenceUnitName("com.cbs.homeworks.dobri_DB_PU");

    return e;/*from  www . j  av  a2 s  .c  o m*/
}