例如,上一次我们看到了,不能划分对象的生命周期会导致,在试图将元数据关联到瞬时对象时出现意外的对象保持。
For example, last time we saw how failing to demarcate an object's lifecycle could cause unintentional object retention when trying to associate metadata with transient objects.
有多方面的考虑(版本控制,瞬时对象,枚举常量时,使用对象序列化等),所以我建议做一些阅读的主题。
There are a number of considerations (versioning, transient objects, Enum constants, etc.) when using object serialization, so I would suggest you do some reading about the subject.
我们没有修改会话对象中保存瞬时信息的代码。
We did not make changes to the code that stores transient information in session objects.
在范例11中,我们为electricitydeal加上了select - before - update,这会对瞬时(transient)对象或分离(detached)对象产生额外的select语句,但却能避免不必要的数据库更新。
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.
电力计量直接的对象是电子互感器,IEC标准统一规定了电子互感器的两种输出方式:数字瞬时值序列和模拟电压信号。
The direct object of power metering is electronic transformer. From IEC standards, electronic transformer has two kinds of output: digital signals and analog signals.
绝对不要尝试在一个管理对象的非瞬时域上保存一个管理器实例。
Never try to save a Manager Instance on a non - transient field of a Managed Object.
绝对不要尝试在一个管理对象的非瞬时域上保存一个管理器实例。
Never try to save a Manager Instance on a non - transient field of a Managed Object.
应用推荐