-->
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: re associating objects ?
PostPosted: Sat Apr 24, 2004 5:48 pm 
Beginner
Beginner

Joined: Wed Feb 25, 2004 10:58 am
Posts: 43
I will use the example of blog items and blogs . I am using a web app (struts) with hibernate. We have drop down that is populated with label value pairs . The drop down in populated with blog id's and the blog name. The form allows you to add blog details . When I submit the form do I always need to ressassociate the blog detials with the the blog in the database by using the the blog id and session.load ? Pre-hibernate , we did not have to do the extra select , we could just stick the blog id into the blog detail .


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 24, 2004 6:56 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
If you have the domain object but need to associate it (back) into the new session you can use 'update' or 'lock'. The manual has more details.


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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.