Author: gbayon
Date: Sun Jan 21 01:32:15 2007
New Revision: 498260
URL: http://svn.apache.org/viewvc?view=rev&rev=498260
Log:
- Updated lazy loading doc
Modified:
ibatis/trunk/cs/docs/dataMapperGuide/src/en/introduction.xml
ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml
Modified: ibatis/trunk/cs/docs/dataMapperGuide/src/en/introduction.xml
URL:
http://svn.apache.org/viewvc/ibatis/trunk/cs/docs/dataMapperGuide/src/en/introduction.xml?view=diff&rev=498260&r1=498259&r2=498260
==============================================================================
--- ibatis/trunk/cs/docs/dataMapperGuide/src/en/introduction.xml (original)
+++ ibatis/trunk/cs/docs/dataMapperGuide/src/en/introduction.xml Sun Jan 21
01:32:15 2007
@@ -50,6 +50,12 @@
<listitem>
Resolution of N+1 select problem using groupBy attribute
</listitem>
+ <listitem>
+ Added support ot reuse SQL fragement via <include/> tag
+ </listitem>
+ <listitem>
+ Added lazy load support for single class
+ </listitem>
</itemizedlist>
</sidebar>
</sect1>
Modified: ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml
URL:
http://svn.apache.org/viewvc/ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml?view=diff&rev=498260&r1=498259&r2=498260
==============================================================================
--- ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml (original)
+++ ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml Sun Jan 21 01:32:15
2007
@@ -1848,13 +1848,14 @@
<para>Use the lazyLoad attribute with the select attribute to indicate
whether or not the select statement's results should be lazy loaded.
This can provide a performance boost by delaying the loading of the
- select statement's results until they are needed/accessed.
+ select statement's results until they are needed/accessed.</para>
- Lazy loading is supported transparently for IList and
IList<T> implementation.
- Lazy loading is supported on strongly typed collection via
Castle.DynamicProxy component. In this case you must set the listClass
attribute and declare all methods/properties of the typed collection that you
want to proxy as virtual.
- </para>
+ <para>Lazy loading is supported transparently for IList and
IList<T> implementation.</para>
+ <para>Lazy loading is supported on strongly typed collection
via Castle.DynamicProxy component. In this case you must set the listClass
attribute and declare all methods/properties of the typed collection that you
want to proxy as virtual.</para>
+ <para>Lazy loading is supported on concrete class via
Castle.DynamicProxy component. In this case, you must declare all
methods/properties of the class that you want to proxy as virtual.</para>
- <para><example>
+<para>
+ <example>
<title>Sample of strongly typed collection used with proxy
call</title>
<programlisting>
@@ -1923,7 +1924,25 @@
}
}
</programlisting>
- </example></para>
+</example>
+ <example>
+ <title>Concrete class</title>
+
+ <programlisting>
+[C#]
+
+[Serializable]
+public class Person
+{
+...
+ public virtual string Name
+ {
+ get {return _name;}
+ }
+...
+}
+</programlisting>
+</example></para>
</sect3>
<sect3>