ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: Expected lazy loading, got eager.
Date Mon, 08 Feb 2010 14:30:08 GMT
In a nutshell, trace through and figure out what call is triggering
the load.  You have a failing case, which will save a lot of time on
our end.

On 2010-02-08, Daryl Stultz <daryl@6degrees.com> wrote:
> On Sun, Feb 7, 2010 at 4:15 PM, Clinton Begin
> <clinton.begin@gmail.com>wrote:
>
>> Are you running Beta 9?
>>
>> I think so, it's ibatis-3-core-src-3.0.0.227.
>
>
>> If so, you might need to step through the code for us to see where it's
>> being called.
>>
>> What is the "it" in "where it's being called"? You want me to look for
>> some
> trigger/condition that initiates the call to UserTypeMapper.findById() ?
>
>
>> Also, ensure that your <settings> element enables lazy loading in your
>> configuration file (see the docs for more).
>>
>> Yes, it is, and classes are CGLIB enhanced.
>
>> So it looks like user.userType is being eagerly loaded. How do I set
>> things
>>> up to be lazy loaded? I have <setting name="lazyLoadingEnabled"
>>> value="true"
>>> /> even though the default is true. I have confirmed that my classes are
>>> being enhanced by CGLIB.
>>>
>>>
> --
> Daryl Stultz
> _____________________________________
> 6 Degrees Software and Consulting, Inc.
> http://www.6degrees.com
> mailto:daryl@6degrees.com
>

-- 
Sent from my mobile device

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message