-->
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: Updating Objects
PostPosted: Thu Oct 28, 2004 7:07 am 
Newbie

Joined: Thu Oct 28, 2004 6:57 am
Posts: 2
Location: bangalore india
Hi ,


I wanted to know if there is a way of updating particular attributes of an object which is identified by a particular identifier. The scenario is that i have some of the attribute values (that will replace the existing ones) of an object and its identifier . I dont want to do session.get() or session.load() and update the object. This will result in two database operation. Is there any way way so that i can update the object directly as it is with standard SQL UPDATE statement with a WHERE Clause
eg; UPDATE user set name ='seemanto' where userID = 1;

thanks

_________________
- regards
Seemanto B.


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.