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: ExecuteUpdate in 2.0 beta1
PostPosted: Mon Jul 07, 2008 12:00 pm 
Newbie

Joined: Sun Dec 30, 2007 12:51 pm
Posts: 7
Hibernate version: 2.0 beta1

I was waiting for ExecuteUpdate in nhibernate for some time. I was happy that it was finally implemented in version 2.0, it is something wrong with it or I am doing something not the right way.

IQuery q = NHibernateSession.CreateQuery("update Pictures set PublicPicture = :pub where PictureId = :id");

And i get an excepton :
query must begin with SELECT or FROM: update [update `Pictures` set PublicPicture = :pub where PictureId = :id]

How to use new ExecuteUpdate method with hql ?


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.