Tim Holloway wrote:First and foremost, I have doubts about the @TransactionAttribute annotation. I've always used simply @Transactional. I AM assuming that you're using Spring Data, by the way.
Secondly, the EntityManager shouldn't have to invoke beginTransaction because - again, I'm assuming that this is Spring Data - the Spring Data framework makes the entire method transactional automatically.
In other words, I think you're trying to mix brute-force and framework-based design styles together and they don't like it.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton