-->
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.  [ 3 posts ] 
Author Message
 Post subject: Update
PostPosted: Wed Dec 01, 2004 6:09 pm 
Newbie

Joined: Wed Nov 24, 2004 4:48 pm
Posts: 6
Hi

Could any one help me out on:
How to do a update with where criteria like ,
eg: Update this table set sal = 1000 where sal > 500 or sal between 100 AND 200
I mean things like that w/constraints.

TX


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2004 7:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Drop back to JDBC.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 02, 2004 10:18 am 
Newbie

Joined: Wed Nov 24, 2004 4:48 pm
Posts: 6
david wrote:
Drop back to JDBC.


Well, let me know if there is a way that one can construct the reqd. where clause w/Criteria Interface and Expression and then call
update on it.
I don't think things like this CAN't be done thru Hibernate.There must be a better way, if any body can help me.

TX


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