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:
Gavin King 2005-07-30 05:40:17 +00:00
parent f825fb082d
commit a58a46aeba
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -387,6 +387,13 @@ Cat fritz = (Cat) iter.next();]]></programlisting>
Hibernate will detect persistent classes that override <literal>equals()</literal> or
<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>