[ http://issues.apache.org/jira/browse/IBATIS-161?page=all ]
     
Sven Boden closed IBATIS-161:
-----------------------------

    Resolution: Duplicate

This is a duplicate of IBATIS-246, or the other way around. 

As IBATIS-246 is newer I will attach the comment of this one to IBATIS-246.

> Finer Grain Control on settings
> -------------------------------
>
>          Key: IBATIS-161
>          URL: http://issues.apache.org/jira/browse/IBATIS-161
>      Project: iBatis for Java
>         Type: Improvement
>   Components: SQL Maps
>     Versions: 2.1.0
>     Reporter: Stephane Bailliez
>     Priority: Minor

>
> Following my post in the dev list.
> It would probably be interesting to have fine-grained control over the 
> lazy-loading.
> For instance, having a per-statement lazy-loading flag where dependent 
> requests (like in the case of n+1 selects) would inherit this flag.
> I came over it after discovering that cglib-enhanced classes are not 
> serializable, which make sense due to lazy-loading.
> You could need it for the following case:
> You may know, that your relationships are not in the form 1:bazillion but 
> more like 1:4 (replace 4 by your favorite 'less than 10' number) with very 
> lightweights objects , thus the need to potentially be able to disable cglib 
> enhanced relations.
> To workaround this, you can:
> 1) disable application-wide lazy loading via <settings/> (big side-effect)
> 2) implements your own serialization mechanism by basically cloning the 
> relations. (code clutter)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to