When I call:
entityManager.flush()
I get the exception mentioned in the title.
I am using Hibernate JPA.
Make sure that your spring configuration includes the following line:
mode can be either proxy or aspectj and transaction-manager has to point to your transaction manager been.
mode
transaction-manager