-->
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: Get Object tree using Hibernate but only update some objects
PostPosted: Tue May 10, 2005 5:58 pm 
Beginner
Beginner

Joined: Mon Nov 29, 2004 5:34 pm
Posts: 35
Hi,
I have an object and related hibernate mapping file, with lots of sets (Lot of association to other tables).

There is generic search page in our requirement and so when we search, we load the master table/Object with all the related tables/objects data.

From this search page, I do to my functionality and my question is that, even though I got this tree structure of object, I change only 2 objects and I would like to update them only.

Right now when I give
Code:
Session.update(masterObject),
it update master and also all the child tables.

What is the approach to you would take to update only 2 targeted tables in the tree structure.

How do I do using hibernate.

Is there a way to say that you got the tree of object and you would like to update only some of the tables of that tree structure.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 11, 2005 12:33 am 
Beginner
Beginner

Joined: Mon Nov 29, 2004 5:34 pm
Posts: 35
Any Inputs......


Top
 Profile  
 
 Post subject: Need Imm Help, Hibernate Gurus................
PostPosted: Wed May 11, 2005 11:12 pm 
Beginner
Beginner

Joined: Mon Nov 29, 2004 5:34 pm
Posts: 35
When i get data from different tables, and show to user. but i update some tables only.

How do i stop hibernate to update other tables.

I am updating the main table and its mapping file has sets to other tables.


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.