Hibernate JPA and Spring javax.persistence.TransactionRequiredException: no transaction is in progress

后端 未结 13 2695
说谎
说谎 2020-12-05 17:52

When I call:

entityManager.flush()

I get the exception mentioned in the title.

I am using Hibernate JPA.

13条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 18:41

    I have finally fixed this error by adding

    
    

    into my application-context.xml

提交回复
热议问题