hibernate 中的 Interceptor

03-08-13 newpaul
看了一下hibernate 中的 Interceptor接口中的方法

其中

findDirty()

Called from flush(). The return value determines whether the entity is updated

an array of property indices - the entity is dirty

and empty array - the entity is not dirty

null - use Hibernate's default dirty-checking algorithm

onFlushDirty()

Called when an object is detected to be dirty, during a flush. The interceptor may modify the detected currentState, which will be propagated to both the database and the persistent object. Note that not all flushes end in actual synchronization with the database, in which case the new currentState will be propagated to the object, but not necessarily (immediately) to the database. It is strongly recommended that the interceptor not modify the previousState.

不太理解则么用 这里的Dirty是什么意思啊? 谁能说说

lyojbuilder
2004-04-05 01:12
我也想知道,谁讲一下?

lyojbuilder
2004-04-06 00:02
提前

豺狼笑
2004-04-06 12:23
脏数据, 就是更改过得数据

猜你喜欢