-
2 votesanswersviews
创建没有persistence.xml的Entity Manager Factory
有没有办法创建 EntityManagerFactory without a persistence unit defined ?您能否提供创建实体经理工厂所需的所有属性?我需要在运行时从用户的指定值创建EntityManagerFactory . 更新persistence.xml并重新编译不是一个选项 . 目前我正在使用 eclipselink dynamic persistence 所以我需... -
0 votesanswersviews
Spring JPA和跨多个WARS和@Persistence Context线程安全共享实体管理器
我读到了关于 Persistence Context 但是无法清楚地了解我的怀疑,如下所示 .1.我有一个DAO类,作为 @PersistenceContext(unitName="") private EntityManager entityManager ,从我的Service方法,我使用@Transactional(propagation = Propagation.RE...