-->
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: Empty Update Statement Problems With Collections
PostPosted: Thu Apr 08, 2010 4:21 pm 
Newbie

Joined: Thu Apr 08, 2010 4:11 pm
Posts: 1
Hi,
I'm new to NHibernate, and I'm struggling with a problem when I Merge or update a entity when I just update the collection or an item in the collection I get a SQL Exception Cannot perform UPDATE ********** SET WHERE xxxx = XXXX.
I realise the propblem is there is not properties on the parent entity that has changed, resulting ina empty SET clause, how do I get around this problem.

In the mappings the collection can be a many-many of a one-many in the parent I set the inverse property to true.
If I set the dynamic-update to false this problem goes away, obviosly because the update statement is being forced.

Any help would be greatful.


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.