ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <da...@6degrees.com>
Subject Re: Expected lazy loading, got eager.
Date Mon, 08 Feb 2010 13:47:01 GMT
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

Mime
View raw message