-->
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: Confused between lazy and fetch
PostPosted: Thu Apr 24, 2014 1:15 am 
Newbie

Joined: Thu Apr 24, 2014 1:10 am
Posts: 1
lazy = false and fetch = select , what does it mean ?

I read that lazy = false means eager loading , i.e. loading the child object while creating parent object ,whereas lazy = true means loading child objects on demand
fetch = select means when loading the child , load one by one , i.e. one select query for each child ?
fetch = join means when loading child , load all child at once, one select query which load all the childs ?

so lazy = false and fetch = select , does it means that when loading parent, load first child ? Remaining childs will be loaded on demand ?

can you please explain lazy = true|false , and fetch = select|join with examples please ?


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.