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.  [ 7 posts ] 
Author Message
 Post subject: Attn: Hibernate Team - Looking for consulting support
PostPosted: Wed Apr 20, 2011 4:52 pm 
Newbie

Joined: Mon Dec 05, 2005 6:52 pm
Posts: 4
Location: Atlanta
Attn: Gavin and Team - My name is Raj. My client is looking for consulting support on one of the Hibernate issue we are having. Do you guys provide such support ?
If yes you can reach me at 678 665 2219, else please recommend someone.


Top
 Profile  
 
 Post subject: Re: Attn: Hibernate Team - Looking for consulting support
PostPosted: Thu Apr 21, 2011 3:37 am 
Expert
Expert

Joined: Thu Jan 08, 2009 6:16 am
Posts: 661
Location: Germany
See my signature. ;-)

_________________
-----------------
Need advanced help? http://www.viada.eu


Top
 Profile  
 
 Post subject: Re: Attn: Hibernate Team - Looking for consulting support
PostPosted: Thu Apr 21, 2011 8:09 pm 
Newbie

Joined: Mon Dec 05, 2005 6:52 pm
Posts: 4
Location: Atlanta
mmerder
Thanks for you reply.

We have the domain objects retrieved and brought to the front end, from the domain objects we make the Value objects. By the way our domain objects have audit fields like modified date, modified user. While making the Value objects from the domain objects we mistakenly did not copy the audit fields into VO.
When we copy the VO changes to DO to persist, since we did not copy the audit fields in the beginning, we could not copy the audit fields back to DO. Now you know what happens, even if there are no changes in the VO data, since the audit fields are null, hibernate is thinking this object is dirty and doing the unnecessary updates.

I thought i will copy previous state info into current state. No luck.

We tried all possible ways in Audit Interceptor findDirty method. This method either has same values in currentSate and previousState or no previousState at all. We debugged it many times.

So finally we are reaching out to get some help on tweaking the Hibernate source code itself to avoid dirty checking on audit fileds. Unless I hear some strange idea for now I think we don’t have any option than changing the hibernate source code itself.


Hope there is some strange idea which works -:). Let me know if you want to do this, we are ready to sign the SOW with you.


Top
 Profile  
 
 Post subject: Re: Attn: Hibernate Team - Looking for consulting support
PostPosted: Fri Apr 22, 2011 4:39 am 
Newbie

Joined: Mon Dec 05, 2005 6:52 pm
Posts: 4
Location: Atlanta
Not sure how reliable this is. We tried to ignore our audit fields in, need to test the application.............


DefaultFlushEntityEventListener dirtyCheck(FlushEntityEvent event) throws HibernateException


else {
// dirty check against the database snapshot, if possible/necessary
final Object[] databaseSnapshot = getDatabaseSnapshot(session, persister, id);
if ( databaseSnapshot != null ) {
dirtyProperties = persister.findModified(databaseSnapshot, values, entity, session);
IF AUDIT FIELDS MAKE dirtyProperties = NULL
cannotDirtyCheck = false;
event.setDatabaseSnapshot(databaseSnapshot);
}
}
}
else {
// the Interceptor handled the dirty checking
cannotDirtyCheck = false;
interceptorHandledDirtyCheck = true;
}

event.setDirtyProperties(dirtyProperties);
event.setDirtyCheckHandledByInterceptor(interceptorHandledDirtyCheck);
event.setDirtyCheckPossible(!cannotDirtyCheck);


Top
 Profile  
 
 Post subject: Re: Attn: Hibernate Team - Looking for consulting support
PostPosted: Fri Apr 22, 2011 11:57 am 
Newbie

Joined: Fri Apr 22, 2011 10:16 am
Posts: 6
Hi my answere is correct or wrong i don't know.
try this
include
Quote:
update = false
in mapping file for both the property


Top
 Profile  
 
 Post subject: Re: Attn: Hibernate Team - Looking for consulting support
PostPosted: Fri Apr 22, 2011 2:27 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
rajoos wrote:
Attn: Gavin and Team - My name is Raj. My client is looking for consulting support on one of the Hibernate issue we are having. Do you guys provide such support ?
If yes you can reach me at 678 665 2219, else please recommend someone.

Hello,
sure we do, actually we employ a team of specialized consultants on Hibernate.
We're all employees of JBoss by Red Hat inc., so this is where you can get professional support from us directly:
http://www.jboss.com/
I'm personally in R&D, so can't phone you back myself; please get in touch with sales.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Attn: Hibernate Team - Looking for consulting support
PostPosted: Mon Apr 25, 2011 2:14 pm 
Expert
Expert

Joined: Thu Jan 08, 2009 6:16 am
Posts: 661
Location: Germany
s.grinovero wrote:
rajoos wrote:
Attn: Gavin and Team - My name is Raj. My client is looking for consulting support on one of the Hibernate issue we are having. Do you guys provide such support ?
If yes you can reach me at 678 665 2219, else please recommend someone.

Hello,
sure we do, actually we employ a team of specialized consultants on Hibernate.
We're all employees of JBoss by Red Hat inc., so this is where you can get professional support from us directly:
http://www.jboss.com/
I'm personally in R&D, so can't phone you back myself; please get in touch with sales.


btw: I am one of the specialized consultants in europe. ;-)

thangaraj wrote:
update = false

Sounds good, have you tried that?

_________________
-----------------
Need advanced help? http://www.viada.eu


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.