mooritze wrote:
You might want to use an interceptor and mark the object dirty/clean on demand. I did that for forcing objects to be dirty.
Ie findDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)
is pretty explicit
From the API docs, findDirty() is called from flush(). However, I don't see how I can determine whether or not the entity has been explicitly updated (say, with a call to update()). There's an onSave() method on the Interceptor interface, but the documentation is lacking - I could grovel about in the source to get the contextual information I'm looking for.
I'd be grateful of any suggestions or clarification.
Thanks,
Peeper.