What is the difference between LocalContainerEntityManagerFactoryBean and LocalEntityManagerFactoryBean?

后端 未结 7 554
离开以前
离开以前 2020-12-24 01:45

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

7条回答
  •  难免孤独
    2020-12-24 01:57

    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.

提交回复
热议问题