HHH-6969 - Reference manual discusses removed SessionFactory.openSession(Interceptor) method

This commit is contained in:
Steve Ebersole 2012-01-13 15:51:35 -06:00
parent 3071fa892f
commit fbc71652b8
1 changed files with 2 additions and 3 deletions

View File

@ -147,11 +147,10 @@ public class AuditInterceptor extends EmptyInterceptor {
<para>
A <literal>Session</literal>-scoped interceptor is specified
when a session is opened using one of the overloaded SessionFactory.openSession()
methods accepting an <literal>Interceptor</literal>.
when a session is opened.
</para>
<programlisting role="JAVA"><![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]></programlisting>
<programlisting role="JAVA"><![CDATA[Session session = sf.withOptions( new AuditInterceptor() ).openSession();]]></programlisting>
<para>
A <literal>SessionFactory</literal>-scoped interceptor is registered with the <literal>Configuration</literal>