2 <!DOCTYPE hibernate-mapping PUBLIC
3 "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
4 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
8 <class name="org.wamblee.security.authorization.AuthorizationService" table="AUTHORIZATION_SERVICE"
9 select-before-update="true">
10 <id name="primaryKey" column="ID" type="long">
11 <generator class="native"/>
13 <discriminator column="TYPE" type="string"/>
14 <version name="persistedVersion" column="VERSION"/>
16 <subclass name="org.wamblee.security.authorization.DefaultAuthorizationService"
17 discriminator-value="DEFAULT">
19 <property name="name" column="NAME"/>
21 <list name="mappedRules" table="AUTHORIZATION_SERVICE_RULES" lazy="false" cascade="all-delete-orphan">
23 <index column="POSITION"/>
24 <many-to-many class="org.wamblee.security.authorization.AuthorizationRule"
31 <query name="findAuthorizationServiceByName">
33 from org.wamblee.security.authorization.AuthorizationService service
34 where service.name = :name