-->
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: Mapping Issue !!!
PostPosted: Wed Sep 24, 2008 2:33 am 
Newbie

Joined: Wed Sep 24, 2008 2:24 am
Posts: 2
Hi,

I am new to Hibernate and i would like to know who i can conditionally load the instance variable in my java class mapped to property in mapping xml.

I am interested in only few columns in a table for a particular use case but hibernate is loading all the columns to java object right now based on mapping which results in loading a huge object in memory which i would like to avoid.

Any help on this is highly appreciable.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 24, 2008 5:17 am 
Newbie

Joined: Wed May 21, 2008 11:21 am
Posts: 11
You should read about lazy loading:

http://www.hibernate.org/hib_docs/refer ... ching-lazy

http://www.hibernate.org/hib_docs/refer ... properties


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.