Do you have cglib on your classpath? Larry
On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I've got one SQLMap for an object that has children. For some reason when I execute a select and have properties of the result object perform selects to retrieve the adjacent objects the lazy load does not seem to work, but rather the adjacent select statements are being fired and the data is retrieved. I'm using iBatis 2.3.0.667 My SQL Map Config has the following defined: <settings cacheModelsEnabled="true" errorTracingEnabled="true" enhancementEnabled="true" lazyLoadingEnabled="true" maxSessions="250" maxTransactions="30" maxRequests="500" useStatementNamespaces="true"/> My result Map looks as follows: (The ones in red seem to be fired every time no matter what) <resultMap id="MessageResult" class="Message"> <result column="Message_id" jdbcType="NUMERIC" property="id"/> <result column="Message_type" jdbcType="VARCHAR" property="type"/> <result column="Message_state" jdbcType="VARCHAR" property="state" /> <result column="Message_previous_state" jdbcType="VARCHAR" property="previousState" /> <result column="Message_document_identifier" jdbcType="VARCHAR" property="documentIdentifier"/> <result column="Message_purchase_order_no" jdbcType="VARCHAR" property="poNumber"/> <result column="Message_order_no" jdbcType="VARCHAR" property="order" select="RequestOrder.findByPrimaryKey"/> <result column="Message_create_date" jdbcType="TIMESTAMP" property="createDate" /> <result column="Message_mod_date" jdbcType="TIMESTAMP" property="modifiedDate" /> <result column="Message_version" jdbcType="INTEGER" property="version" /> <result column="{textPointer=Payload_text_pointer,dataLength=Payload_data_length}" property="payload" select="Message.loadContent"/> <result column="Message_parent_id" property="parent" select="Message.findByPrimaryKey"/> <result column="Message_id" property="metaData" select="MessageMetaData.findByMessageId"/> </resultMap> Thanks for the help... Chris Mathrusse [EMAIL PROTECTED] (925) 236-5553