ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher.Mathru...@sybase.com
Subject RE: Lazy Loading not working
Date Fri, 25 May 2007 05:25:17 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii" inline 
Content-Disposition: format="flowed" plain; text Content-Type: 7bit 
Content-Transfer-Encoding:>
<META content="MSHTML 6.00.6000.16441" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=187502405-25052007><FONT face=Arial 
color=#0000ff size=2>Yes I do. The interesting thing is that Lazy loading is 
working on some of my other objects but not on this one.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> larry.meadors@gmail.com 
[mailto:larry.meadors@gmail.com] <B>On Behalf Of </B>"Larry Meadors" 
&lt;lmeadors@apache.org&gt;<BR><B>Sent:</B> Thursday, May 24, 2007
8:12 
PM<BR><B>To:</B> user-java@ibatis.apache.org<BR><B>Subject:</B>
Re: Lazy Loading 
not working<BR></FONT><BR></DIV>
<DIV></DIV>Do you have cglib on your classpath? <BR><BR>Larry <BR><BR><BR>On

5/24/07, Christopher.Mathrusse@sybase.com 
<BR><CHRISTOPHER.MATHRUSSE@SYBASE.COM>wrote: <BR>&gt; <BR>&gt;
<BR>&gt; I've got 
one SQLMap for an object that has children. For some reason when I <BR>&gt; 
execute a select and have properties of the result object perform selects to 
<BR>&gt; retrieve the adjacent objects the lazy load does not seem to work, but

<BR>&gt; rather the adjacent select statements are being fired and the data is 
<BR>&gt; retrieved. <BR>&gt; <BR>&gt; I'm using iBatis 2.3.0.667
<BR>&gt; 
<BR>&gt; My SQL Map Config has the following defined: <BR>&gt; <BR>&gt;

<SETTINGS <BR>&gt; cacheModelsEnabled="true" <BR>&gt; errorTracingEnabled="true"

<BR>&gt; enhancementEnabled="true" <BR>&gt; lazyLoadingEnabled="true"
<BR>&gt; 
maxSessions="250" <BR>&gt; maxTransactions="30" <BR>&gt; maxRequests="500"

<BR>&gt; useStatementNamespaces="true"/&gt; <BR>&gt; <BR>&gt;
My result Map 
looks as follows: (The ones in red seem to be fired every time <BR>&gt; no 
matter what) <BR>&gt; <BR>&gt; <RESULTMAP class=Message 
id=MessageResult><BR>&gt; <RESULT property="id" jdbcType="NUMERIC" 
column="Message_id" /><BR>&gt; <RESULT property="type" jdbcType="VARCHAR"

column="Message_type" /><BR>&gt; <RESULT property="state" jdbcType="VARCHAR"

column="Message_state" /><BR>&gt; <RESULT <BR jdbcType="VARCHAR" 
column="Message_previous_state">&gt; property="previousState" /&gt; <BR>&gt;

<RESULT <BR column="Message_document_identifier">&gt; jdbcType="VARCHAR" 
property="documentIdentifier"/&gt; <BR>&gt; <RESULT <BR 
column="Message_purchase_order_no">&gt; jdbcType="VARCHAR" 
property="poNumber"/&gt; <BR>&gt; <RESULT <BR property="order" 
jdbcType="VARCHAR" column="Message_order_no">&gt; 
select="RequestOrder.findByPrimaryKey"/&gt; <BR>&gt; <RESULT <BR 
jdbcType="TIMESTAMP" column="Message_create_date">&gt; property="createDate" 
/&gt; <BR>&gt; <RESULT <BR jdbcType="TIMESTAMP" column="Message_mod_date">&gt;

property="modifiedDate" /&gt; <BR>&gt; <RESULT <BR property="version"

jdbcType="INTEGER" column="Message_version">&gt; /&gt; <BR>&gt; <RESULT
<BR>&gt; 
column="{textPointer=Payload_text_pointer,dataLength=Payload_data_length}" 
<BR>&gt; property="payload" select="Message.loadContent"/&gt; <BR>&gt;
<RESULT 
<BR property="parent" column="Message_parent_id">&gt; 
select="Message.findByPrimaryKey"/&gt; <BR>&gt; <RESULT <BR property="metaData"

column="Message_id">&gt; select="MessageMetaData.findByMessageId"/&gt; <BR>&gt;

</RESULTMAP><BR>&gt; <BR>&gt; <BR>&gt; Thanks for the
help... <BR>&gt; <BR>&gt; 
<BR>&gt; Chris Mathrusse <BR>&gt; christopher.mathrusse@sybase.com <BR>&gt;

(925) 236-5553 <BR>&gt; <BR><BR></BODY></HTML>


Mime
View raw message