Hi everybody.
I want to apologize if the title is not clear, but really I don't know how to be clear in few
word. I want to apologize also if I posted in the wrong section
. And my last apology is for a possible duplicated question..I swear I've searched the forum, but I've found no solution.
Suppose you are in the following situtation:
where the transactionalMethodUsingDao() perform an insert into mysql DB in a for loop.
Mysql logs show something like:
Now suppose that the transactional method you are calling is the same class, so that:
This lead to a log like:
My question is: why? I've read the documentation but clearly I've missed something since is not clear to me why the two code act in a different manner.
The same applies for managers that call an insert operation through a DAO.
Thanks