No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call; nested exception is javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call
java
缘由是,在更新 删除操做的业务方法中,其中有一个Service没加@Transaction 注解ui
只有新增操做的业务方法中,部分Service不加注解不会报错。spa
产生问题:这样涉及到Update,Delete的会都在同一个事物中吗, 如何对整个业务的修改、更新作到事物细化???.net