I am pulling my hair out trying to find the Hibernate equivalent of 
onFlushDirty() in the ejb3 spec, as well as the JBoss's implementation of the 
ejb3.  

Basically,  I want to know which fields are dirty when an entity bean is merged 
(updated) in database.  From the ejb3 spec it seems the PreUpdate callback 
method is the perfect place for this.  Unfortunately, the spec does not say (or 
may be I did not find) where to get the previous entity bean state.  In 
Hibernate's onFlushDirty(), an entity bean's current state and previous state 
are passed in as function arguments.  Can some one plese tell me where to find 
the equivalent?  Or is it supported at all?

Thanks in advance.

-Zihong

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881874#3881874

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881874


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to