java - Flushing in the repositories -
Most of the code shows me (spring), it seems that any call Yes, one reason is by default, and it is a good thing to flush as much as possible, because the transaction is rolled back, Because it avoids execution of this query. entityManager.flush () Is there a reason for this from a repository?
flush () Before being done, or before a query is executed, it is called automatically, resulting in non-flick-induced modifications. So a clear
flush () is not nearly needed
Comments
Post a Comment