Missing implicite entityManager.flush() before storedprocedure call and Spring-Data Repository #3433
Labels
for: stackoverflow
A question that's better suited to stackoverflow.com
status: declined
A suggestion or change that we don't feel we should currently apply
I have an Spring Data JPA Repository with a StoreProcedure caller method, annotated with @procedure.
I made some changes on entities which are attached to the entityManager.
If i call the StoredProcedure method without explicitly calling entityManager.flush() first, the StoredProcedure does not see the changes.
Issue is also described here:
https://stackoverflow.com/questions/53839795/how-to-flush-spring-data-jpa-before-calling-stored-procedure
The text was updated successfully, but these errors were encountered: