-->
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: Hibernate Update ?
PostPosted: Sat Feb 26, 2011 1:29 pm 
Newbie

Joined: Tue May 11, 2010 6:38 pm
Posts: 5
Disclaimer: I am a Hibernate newbee so please bear with me if my question sounds really stupid

Hi,
I am reading through hibernate docs and i really curious to know is it possible to perform an Update in hibernate
without loading the object (i know we could do this with HQL http://docs.jboss.org/hibernate/core/3. ... tch-direct , but i am just wondering if its possible with objects).

Because IMHO , i feel that its an over kill to load the object from DB to perform an update.

In other words we are performing a select and update query every time when we want to perform update action

Say if have a

Code:
Class A
|
--- string
---- int
---- List<class B> list



say to update the int , dont you think its an overkill to load the class A object which would inturn load the list of classB


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.