Moving around a lot of files to work towards production components.
[utils] / security / src / main / resources / hbm / AuthorizationRule.hbm.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE hibernate-mapping PUBLIC
3     "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
4     "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
5     
6     <hibernate-mapping>
7         
8         <class name="org.wamblee.security.authorization.AuthorizationRule" 
9                table="AUTHORIZATION_RULES" 
10                select-before-update="true"
11                lazy="false">
12             <id name="primaryKey" column="ID" type="long">
13                 <generator class="native"/>
14             </id>
15             <discriminator column="TYPE" type="string"/>
16             <version name="persistedVersion" column="VERSION"/>
17             
18             <subclass name="org.wamblee.security.authorization.UrlAuthorizationRule"
19                 discriminator-value="ISINGROUP"
20                 lazy="false">
21                 <property name="authorizationResultString" column="RESULT"/>
22                 <property name="resourceClassName" column="RESOURCE_CLASSNAME"/>
23                 <many-to-one name="userCondition" 
24                              class="org.wamblee.security.authorization.UserCondition"
25                              column="USERCONDITION_ID"
26                              cascade="all"
27                              lazy="false"/>
28                 <many-to-one name="pathCondition" 
29                     class="org.wamblee.security.authorization.PathCondition"
30                     column="PATHCONDITION_ID"
31                     cascade="all"
32                     lazy="false"/>
33                 <many-to-one name="operationCondition" 
34                     class="org.wamblee.security.authorization.OperationCondition"
35                     column="OPERATIONCONDITION_ID"
36                     cascade="all"
37                     lazy="false"/> 
38             </subclass>
39             
40         </class>
41         
42         
43     </hibernate-mapping>