What for need save() without flush() in JPA?

Viewed 28

The Save() method stores data in memory, not in the database. Why is this behavior necessary? Is it necessary for optimization?

Im learning hibernate and want to understand what to expect from a program with this behavior. I used to work with databases and there was no such way to save.

0 Answers
Related