我有一堆JPA实体,我像这样检索它们: .handle(Jpa.retrievingGateway(myEntityManagerFactory).namedQuery(readQuery)) .jpaQuery("delete from MyTable m where) 或者像这样: .handle(Jpa.deletingGateway(myEntityMan
new CrawlJob();job1.now()job3.now()JPA.em().flush();这是否也会分离job2和job3当前正在处理的所有实体?我认为这两个问题的意思是,作业(不管它们是相同作业的实例化还是不同作业的实例化)是否共享EntityManagers,因此.em().flush()、.em().clear()或.em().get
我用Spring2.5实现了jpa的openjpa,问题不大。org.springframework.dao.InvalidDataAccessApiUsageException:
org.apache.openjpa.persistence.InvalidStateException: Detected reentrant flushMake sure your flush-time instance callback methods or event listeners do not invoke any operations that