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?
|
|