-->
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.  [ 2 posts ] 
Author Message
 Post subject: Info about update
PostPosted: Tue May 03, 2005 1:00 pm 
Regular
Regular

Joined: Thu Feb 24, 2005 2:34 pm
Posts: 80
Hibernate version: 3rc1

Hi, i have this simple sql query (jdbc style)
Code:
"update sdgtwb_dat.aynau00f set pven$a=? where fili$a=? and mode$a=? and mate$a=? and colo$a=? and vari$a=?"
,

in hibernate it's correct to use hql as this (i don't know if work)
Code:
     Query sql = session.createQuery("update CScontrinoVO as ay set ay.pvena=?  where ay.staga=? and ay.modea=? and ay.tgsia=? and ay.pk.filia=?");


or there a best pratices for update, not a single record but more records.
Can you help me
Devis


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 04, 2005 4:00 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Check the doc. http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#batch-direct

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.