Java 类org.springframework.orm.jpa.support.SharedEntityManagerBean 实例源码

项目:jwala    文件:TestJpaConfiguration.java   
@Bean
public SharedEntityManagerBean getSharedEntityManager() {
    final SharedEntityManagerBean shared = new SharedEntityManagerBean();
    shared.setEntityManagerFactory(getEntityManagerFactory());
    return shared;
}
项目:jwala    文件:TestJpaConfiguration.java   
@Bean
public SharedEntityManagerBean getSharedEntityManager() {
    final SharedEntityManagerBean shared = new SharedEntityManagerBean();
    shared.setEntityManagerFactory(getEntityManagerFactory());
    return shared;
}
项目:teavm-flavour    文件:ApplicationConfiguration.java   
@Bean
public FactoryBean<EntityManager> entityManager(EntityManagerFactory emf) {
    SharedEntityManagerBean em = new SharedEntityManagerBean();
    em.setEntityManagerFactory(emf);
    return em;
}
项目:b4    文件:B4CoreRootConfig.java   
@Bean
public SharedEntityManagerBean entityManager() {
    SharedEntityManagerBean em = new SharedEntityManagerBean();
    em.setEntityManagerFactory(entityManagerFactory());
    return em;
}
项目:unidle-old    文件:DataConfiguration.java   
@Bean
public FactoryBean<EntityManager> entityManager() {
    final EntityManagerFactory entityManagerFactory = entityManagerFactory().getObject();

    final SharedEntityManagerBean entityManagerBean = new SharedEntityManagerBean();

    entityManagerBean.setEntityManagerFactory(entityManagerFactory);

    return entityManagerBean;
}