-->
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.  [ 4 posts ] 
Author Message
 Post subject: getting exception for batch update
PostPosted: Fri Aug 12, 2005 9:51 am 
Newbie

Joined: Mon Jun 06, 2005 10:11 am
Posts: 14
hi,
I am getting following exception when doing batch update.


Stack trace is :
org.hibernate.QueryException: query must begin with SELECT or FROM: update [update theater set name=:nm where capacity>=0]


from the exception it looks that batch updates are not supported in 3.0. Please help


Hibernate version:3.0


[/b]

_________________
/Ashwani


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:58 am 
Expert
Expert

Joined: Thu Sep 04, 2003 8:23 am
Posts: 368
See section 14.2 and 14.3 of the doc on how to do batch updates

http://www.hibernate.org/hib_docs/v3/re ... tch-update

If this does not work for you post the code that causes trouble

_________________
Seb
(Please don't forget to give credits if you found this answer useful :)


Top
 Profile  
 
 Post subject: bulk update not batch update
PostPosted: Fri Aug 12, 2005 10:03 am 
Newbie

Joined: Mon Jun 06, 2005 10:11 am
Posts: 14
hi,
Sorry, Please read bulk update not batch update. I am doing exactly what is mentioned in section 14.3

_________________
/Ashwani


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 10:16 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
You must use the new query parser.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.