Minor
git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6244 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
8bf0ecf917
commit
fe13192cb8
|
@ -211,7 +211,7 @@ cfg.getSessionEventListenerConfig().setLoadEventListener( new MyLoadListener() )
|
|||
|
||||
<para>
|
||||
First, you must configure the appropriate event listeners, to enable the use of JAAS
|
||||
authentication.
|
||||
authorization.
|
||||
</para>
|
||||
|
||||
<programlisting><![CDATA[<listener type="pre-delete" class="org.hibernate.secure.JACCPreDeleteEventListener"/>
|
||||
|
@ -220,14 +220,14 @@ cfg.getSessionEventListenerConfig().setLoadEventListener( new MyLoadListener() )
|
|||
<listener type="pre-load" class="org.hibernate.secure.JACCPreLoadEventListener"/>]]></programlisting>
|
||||
|
||||
<para>
|
||||
Next, still in <literal>hibernate.cfg.xml</literal>, define the permissions:
|
||||
Next, still in <literal>hibernate.cfg.xml</literal>, bind the permissions to roles:
|
||||
</para>
|
||||
|
||||
<programlisting><![CDATA[<grant role="admin" entity-name="User" actions="insert,update,read"/>
|
||||
<grant role="su" entity-name="User" actions="*"/>]]></programlisting>
|
||||
|
||||
<para>
|
||||
Where the role names are the roles understood by your JACC provider.
|
||||
The role names are the roles understood by your JACC provider.
|
||||
</para>
|
||||
|
||||
</sect1>
|
||||
|
|
|
@ -310,7 +310,7 @@ public class DomesticCat extends Cat {
|
|||
</sect1>
|
||||
|
||||
<sect1 id="persistent-classes-dynamicmodels">
|
||||
<title>Dynamic modelss</title>
|
||||
<title>Dynamic models</title>
|
||||
|
||||
<para>
|
||||
<emphasis>Note that the following features are currently considered
|
||||
|
|
Loading…
Reference in New Issue