doc'd new lazy options
git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@7703 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
f825fb082d
commit
a58a46aeba
|
@ -1514,7 +1514,7 @@
|
|||
<callout arearefs="manytoone13">
|
||||
<para>
|
||||
<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>):
|
||||
By default, single point associations are proxied. <literal>lazy="true"</literal>
|
||||
By default, single point associations are proxied. <literal>lazy="no-proxy"</literal>
|
||||
specifies that the property should be fetched lazily when the instance variable
|
||||
is first accessed (requires build-time bytecode instrumentation).
|
||||
<literal>lazy="false"</literal> specifies that the association will always
|
||||
|
@ -1688,7 +1688,7 @@
|
|||
<callout arearefs="onetoone9">
|
||||
<para>
|
||||
<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>):
|
||||
By default, single point associations are proxied. <literal>lazy="true"</literal>
|
||||
By default, single point associations are proxied. <literal>lazy="no-proxy"</literal>
|
||||
specifies that the property should be fetched lazily when the instance variable
|
||||
is first accessed (requires build-time bytecode instrumentation).
|
||||
<literal>lazy="false"</literal> specifies that the association will always
|
||||
|
|
|
@ -388,6 +388,13 @@ Cat fritz = (Cat) iter.next();]]></programlisting>
|
|||
<literal>hashCode()</literal>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
By choosing <literal>lazy="no-proxy"</literal> instead of the default
|
||||
<literal>lazy="proxy"</literal>, we can avoid the problems associated with typecasting.
|
||||
However, we will require buildtime bytecode instrumentation, and all operations
|
||||
will result in immediate proxy initialization.
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="performance-fetching-initialization">
|
||||
|
|
Loading…
Reference in New Issue