-->
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: dynamic-update vs. select-before-update
PostPosted: Mon Dec 27, 2004 12:32 pm 
Newbie

Joined: Mon Dec 27, 2004 3:44 am
Posts: 9
I am having the following issue with hibernate:

Foo and Bar both have select-before-update="true"

Foo foo = new Foo();

// INSERTS new Foo object as expected
foo = session1. save(foo);

// No changes so no INSERT or UPDATE as expected
foo = session2. save(foo);

Bar bar = new Bar();
foo.addBar(bar);

// UPDATES foo and INSERTS Bar object as expected
foo = session3. save(foo);

// Updates Bar even though no changes have been made
// and select-before-update is "true"!!!!
// WHY????
foo = session4. save(foo);

What is the issue here? Should I be using dynamic-update instead? What is the difference between dynamic-update and select-before-update? Any guidance is appreciated.

Thanks!

Edward


Top
 Profile  
 
 Post subject: Same Problem
PostPosted: Sun Jan 09, 2005 3:28 am 
Newbie

Joined: Wed Dec 01, 2004 2:21 am
Posts: 12
i've same problem; i can't implement dynamic-update too.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 09, 2005 9:37 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Have you guys tried reading the documentation?


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.