休眠持久状态

时间:2020-01-04 12:06:04

标签: hibernate jpa persistent

我在休眠文档中阅读了有关此状态的令人困惑的句子。有人可以解释一下它的工作原理吗?

Hibernate will detect any changes made to an object in persistent state and synchronize the state with the database when the unit of work completes.

让我们假设我正在使用JPA,并且当我从数据库加载对象并对其进行更新但未保存实体时,它应该在一段时间后仍进行更新。我是正确的?

0 个答案:

没有答案