-->
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: Component tag and lazy load
PostPosted: Mon Apr 14, 2008 10:14 am 
Regular
Regular

Joined: Tue Oct 16, 2007 9:45 am
Posts: 93
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
1.2.1

Mapping documents:

<component name="relationships" class="Intelliun.Collections.EntityBag`1[[Intelliun.Core.Entities.dataobjects.MetaDataRelationship,Intelliun.Core]], Intelliun.Common">
<bag name="content" inverse="true" lazy="true" cascade="all"
access="field.camelcase-underscore" >
<key column="METADATAOBJECT_VEOID"/>
<one-to-many class="Intelliun.Core.Entities.dataobjects.MetaDataRelationship"/>
</bag>
</component>

This mapping works fine as far as being able to load data from data store, etc. The problem is that lazy load does not work. I get the whole object graph pulled in memory at once. Should lazy load work with component tag?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 14, 2008 12:36 pm 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
Not as far as I know. A component is supposed to be considered a part of the parent entity.

Symon.

_________________
Symon Rottem
http://blog.symbiotic-development.com


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.