fc83423d22ed0b87507d27b51a4df97eedd9bdf7
[utils] /
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.UserCondition" table="USER_CONDITIONS" 
9                select-before-update="true"
10                lazy="false">
11             <id name="primaryKey" column="ID" type="long">
12                 <generator class="native"/>
13             </id>
14             <discriminator column="TYPE" type="string"/>
15             <version name="persistedVersion" column="VERSION"/>
16             
17             <subclass name="org.wamblee.security.authorization.GroupUserCondition"
18                 discriminator-value="URL"
19                 lazy="false">
20                 <property name="group" column="GROUPNAME"/>
21             </subclass>
22             
23             <subclass name="org.wamblee.security.authorization.AnyUserCondition"
24                 discriminator-value="ANY"
25                 lazy="false">
26             </subclass>
27             
28         </class>
29         
30         
31     </hibernate-mapping>