-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to avoid unnecessary Updates
PostPosted: Thu Jul 23, 2009 7:12 am 
Newbie

Joined: Thu Jul 23, 2009 7:00 am
Posts: 2
Hi All,

I have 3 objects. Object A,B,C.

A and C is of same type with diff ids.

A and B are associated with each other. A has one-to-one unidirectional association with B. At association level i have mentioned Cascade.ALL. So when i save A, 1st B is saved and den A is saved.
Now When i save C, which is associated with B which is already saved in DB, i expect there should be one insert of C, but i can see update statement is getting fired on B, although no attribute of B has changed.

I dont want these unnecessary updates. Can any1 please help?


Top
 Profile  
 
 Post subject: Re: How to avoid unnecessary Updates
PostPosted: Tue Aug 18, 2009 8:59 pm 
Newbie

Joined: Tue Aug 18, 2009 8:16 pm
Posts: 2
Hi,

I have a similar problem and wanted to ask if you have had any success with resolving yours?

Many thanks,
Marise


Top
 Profile  
 
 Post subject: Re: How to avoid unnecessary Updates
PostPosted: Wed Aug 19, 2009 1:23 am 
Newbie

Joined: Thu Jul 23, 2009 7:00 am
Posts: 2
No, still this problem is open, plz let me know if u find any info abt it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.