-->
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: Many to one loading
PostPosted: Mon Jul 30, 2012 12:04 pm 
Newbie

Joined: Fri Jul 27, 2012 1:28 pm
Posts: 3
In hibernate mapping file i have a many-to-one mapping. Many items are linked to one storeroom.

<many-to-one name="storeroom"
column="store_id"
not-null="true"
cascade="all"
/>

Does storeroom loaded when we get an item from database? For example i am using criteria to get an item . Will the storeroom object load also when item is loaded to session? If i have another criteria to get storeroom in the same session, will storeroom object loaded with item be returned or there will be a second storeroom object in the session?


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.