-->
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.  [ 1 post ] 
Author Message
 Post subject: "save-update" cascading dirties everything!
PostPosted: Mon Feb 06, 2006 3:56 pm 
Beginner
Beginner

Joined: Fri Jul 22, 2005 3:35 pm
Posts: 24
Location: Buenos Aires, Argentina
I have a simple parent-chid relationship with a <list>. The order inside the list is managed from the containing entity with "insert=false update=false" in the contained entity. As stated in the docs I've used cascade="all,delete-orphan", as this is a strict parent-child relationshp.

This works ok. The problem is that when I call "session.update()" on the containing entity, every contained object flushes itself to the connection, even when I haven't touched it.

I think this is ageneral problem with update(), it seems to always dirty what it touches.

(The contained entity has a proper pair of equals and hashCode method.)

I'd appreciate any help. Thanks!


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

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.