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: DML-style operations Options
PostPosted: Fri Nov 27, 2009 1:23 pm 
Beginner
Beginner

Joined: Mon Oct 22, 2007 5:44 am
Posts: 28
Hi,
Using NH 2.1, I'm trying to execute HQL update operation as follows:

session.CreateQuery("Update Address add set add.City= 'f', add.Street
= 'df' where ID=4");


The sql translator ignores from the second set --> add.Street = 'df'
such that the generated
sql looks like:


UPDATE Address SET City='f' WHERE (ID2) IN (select ID2 from
HT_Address)


Does anybody know why the second setter is omitted?
Thanks
dyahav

_________________
dyahav


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.