What's the use of session.flush() in Hibernate

后端 未结 9 1181
甜味超标
甜味超标 2020-11-28 01:38

When we are updating a record, we can use session.flush() with Hibernate. What\'s the need for flush()?

9条回答
  •  甜味超标
    2020-11-28 01:45

    With this method you evoke the flush process. This process synchronizes the state of your database with state of your session by detecting state changes and executing the respective SQL statements.

提交回复
热议问题