温习 - detached状态对象重回持久化环境(Persistent Context) 仅有他的一个分身(Proxy),于是在detached状态时调用去initialize这个proxy,肯定就会有异常了.
基于146个网页-相关网页
进一步掌握持久化环境 Persistent Context
无盘持久化环境 Persistent diskless environment
绕过了持久化环境 persistence context
merge:修改当前持久化环境的指定实体的当前状态。
Merge : Update the current persistence context with the current state of the given entity.
由于本文所介绍的OpenJPA使用针对一个应用程序管理的持久化环境,您可以使用下列任何OpenJPA版本。
Since the usage of OpenJPA in this article is for an application-managed persistence environment, you can use any of these OpenJPA releases.
在生产环境中,有可能需要持久化这个数据。
In a production environment, it's likely that you will want this data to persist.
应用推荐