When merging a detached object back into a session, JPA will examine the object and update the data store with any changed values.
将分离对象合并回会话时,JPA将检查该对象,并使用任何更改值来更新数据存储区。
In example 11, we used "select-before-update" for ElectricityDeal, which incurs an extra select for your transient or detached object. But it does avoid unnecessary updates to your database.
在范例11中,我们为electricitydeal加上了select - before - update,这会对瞬时(transient)对象或分离(detached)对象产生额外的select语句,但却能避免不必要的数据库更新。
How to represent detached persistent object graphs as resources for language-neutral clients?
如何将分离的持久化对象表现为语言无关客户端可使用的资源?
The same persistence-context object is reused during the course of the entire flow, eliminating detached-entity state and the corresponding LazyInitializationException.
在整个流过程中都重用同一个持久化-上下文对象,这避免了分离实体状态的问题和相应的LazyInitializationException 异常。
In the sample application, the token is stored into the data object, into the same field from which the attachment was detached.
在样例应用程序中,令牌存储在数据对象中,存储在分离附件所基于的同一字段中。
When a domain object leaves the data access tier, it gets detached from the entity manager.
当域对象离开数据访问层时,它与实体管理器脱离。
This topic provides an example of how to apply to an object updates made to a detached instance of the same object.
本主题提供的示例介绍如何应用对同一对象的已分离实例所做的对象更新。
This topic provides an example of how to apply to an object updates made to a detached instance of the same object.
本主题提供的示例介绍如何应用对同一对象的已分离实例所做的对象更新。
应用推荐