You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This article reads "So, any change to that entity will be automatically persisted in the database, regardless of whether we are invoking the save() method." and gave such an example:
I found that the test did pass, but findById() simply reads data from the cache, and the data in the database is not updated because save() is not called.
If the cache is cleared between save() and findById() (e.g. by calling entityManager.clear()), the test cannot pass.
So the statement in the article is not quite correct.
The text was updated successfully, but these errors were encountered:
Hello, there may be a bug.
This article reads "So, any change to that entity will be automatically persisted in the database, regardless of whether we are invoking the save() method." and gave such an example:
I found that the test did pass, but findById() simply reads data from the cache, and the data in the database is not updated because save() is not called.
If the cache is cleared between save() and findById() (e.g. by calling entityManager.clear()), the test cannot pass.
So the statement in the article is not quite correct.
The text was updated successfully, but these errors were encountered: