-->
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: Lazy Fetching of Subclass in Table Per Subclass Inheritance?
PostPosted: Thu Sep 01, 2005 8:18 am 
Newbie

Joined: Thu Sep 01, 2005 7:37 am
Posts: 1
Does the Table per subclass, using a discriminator strategy allow the properties in the subclass to be lazily fetched? In the join element, I can set the “fetch” property to “join” (which does an outer join on all the sub tables) or to “select” (which does an immediate select for each of the sub tables). However, what I really want is the select on the sub table to only happen after the first time I access a property in the subclass.

I admittedly haven’t looked at “lazy property fetching”, but that doesn’t really sound like what I want. I want all the properties in a subclass to be populated, but only after I access the first property in the subclass. Thus, if for a particular session I only access properties in the parent class, I don't have to do all the joins/selects on the sub tables.


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.