mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
Not best practice removed
git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@4564 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
19c07ec1bf
commit
9d685b6c17
@ -138,8 +138,7 @@
|
|||||||
the <literal>Transaction</literal> and close the <literal>Session</literal>. If you don't, Hibernate
|
the <literal>Transaction</literal> and close the <literal>Session</literal>. If you don't, Hibernate
|
||||||
can't guarantee that in-memory state accurately represents persistent state. As a special case of this,
|
can't guarantee that in-memory state accurately represents persistent state. As a special case of this,
|
||||||
do not use <literal>Session.load()</literal> to determine if an instance with the given identifier
|
do not use <literal>Session.load()</literal> to determine if an instance with the given identifier
|
||||||
exists on the database; use <literal>find()</literal> instead. Some exceptions are recoverable, for
|
exists on the database; use <literal>find()</literal> instead.
|
||||||
example the <literal>StaleObjectStateException</literal> and <literal>ObjectNotFoundException</literal>.
|
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user