-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Dirty checking
PostPosted: Tue Feb 07, 2006 12:33 pm 
Newbie

Joined: Tue Feb 07, 2006 12:30 pm
Posts: 1
I am trying to find a place within Hibernate source code that deals with Dirty Checking.

Primarily I am looking for pseudo code that would do something like:

Object obj1;
Object obj2;

//fact obj1.getId() == ojb2.getId()

result = dirtyCheck(obj2, obj1);

//where hopefully result contains the summary of changes

any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 8:32 am 
Beginner
Beginner

Joined: Thu Oct 27, 2005 11:53 am
Posts: 42
Hi,

check out

AbstractFlushingEventListener
-> flushEntities(FlushEvent event)
-> listeners[j].onFlushEntity(entityEvent)

listeners[j] == DefaultFlushEntityEventListener
-> dirtyCheck(FlushEntityEvent event)


please rate if this was helpfull, thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.