Adam Hardy on 30/04/08 21:22, wrote:
If I am running JPA in extended persistence context, when I call
EntityManager.merge() within a transaction and then commit the
transaction, should it or shouldn't it execute the SQL?
I assumed that it would but I have a situation where it won't unless I
call EntityManager.flush() before committing the transaction.
I'd really appreciate an answer on this one from anyone - I find the
documentation either too obtuse or too scant to get myself a firm enough
understanding of the situation I'm tackling at the moment.