Alex Rivera | Logout

What is the difference between LocalContainerEntityManagerFactoryBean and LocalEntityManagerFactoryBean?

Asked 2011-05-27T19:28:44.697
53

Can anybody explain what is the difference between the Spring Framework's LocalContainerEntityManagerFactoryBean and LocalEntityManagerFactoryBean?

Edit
Report

1 Answer

18

The documentation says it all:

LocalContainerEntityManagerFactoryBean -- From the link: FactoryBean that creates a JPA EntityManagerFactory according to JPA's standard container bootstrap contract.

LocalEntityManagerFactoryBean -- From the link: FactoryBean that creates a JPA EntityManagerFactory according to JPA's standard standalone bootstrap contract.

Essentially, the only difference is in how they create the JPA EntityManagerFactory.

answered 2011-05-27T20:24:23.097

Your Answer