You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Stephane Bailliez (JIRA)" <ib...@incubator.apache.org> on 2005/06/24 03:26:09 UTC
[jira] Created: (IBATIS-161) Finer Grain Control on settings
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.2
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