Documented setInterceptor()

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@4217 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Christian Bauer 2004-08-10 03:27:34 +00:00
parent ff367dd04a
commit 97a864d80e
1 changed files with 7 additions and 1 deletions

View File

@ -1107,7 +1107,7 @@ finally {
</sect1>
<sect1 id="manipulatingdata-interceptors">
<sect1 id="manipulatingdata-interceptors" revision="1">
<title>Interceptors</title>
<para>
The <literal>Interceptor</literal> interface provides callbacks from the session to the
@ -1206,7 +1206,13 @@ public class AuditInterceptor implements Interceptor, Serializable {
</para>
<programlisting><![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]></programlisting>
<para>
You may also set an interceptor on a global level, using the <literal>Configuration</literal>:
</para>
<programlisting><![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]></programlisting>
</sect1>
<sect1 id="manipulatingdata-metadata">