| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <!DOCTYPE hibernate-mapping PUBLIC |
| "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
| "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
| |
| <hibernate-mapping auto-import="true"> |
| <class name="org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicPermissionImpl" table="PERMISSION" > |
| <id name="id" type="long" column="PERMISSION_ID" unsaved-value="0"> |
| <generator class="native"/> |
| </id> |
| <property name="name" column="NAME" type="string"/> |
| </class> |
| |
| <class name="org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicRoleImpl" table="ROLE" > |
| <id name="id" type="long" column="ROLE_ID" unsaved-value="0"> |
| <generator class="native"/> |
| </id> |
| <property name="name" column="NAME" type="string"/> |
| |
| <set name="permissionsAsSet" lazy="true" table="ROLE_PERMISSION"> |
| <key column="ROLE_ID"/> |
| <many-to-many class="org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicPermissionImpl" column="PERMISSION_ID"/> |
| </set> |
| |
| <set name="groupsAsSet" lazy="true" table="GROUP_ROLE" inverse="true" cascade="none"> |
| <key column="ROLE_ID"/> |
| <many-to-many class="org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicGroupImpl" column="GROUP_ID"/> |
| </set> |
| </class> |
| |
| <class name="org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicGroupImpl" table="GROUPS" > |
| <id name="id" type="long" column="GROUP_ID" unsaved-value="0"> |
| <generator class="native"/> |
| </id> |
| <property name="name" column="NAME" type="string"/> |
| |
| <set name="rolesAsSet" lazy="true" table="GROUP_ROLE" cascade="none" > |
| <key column="GROUP_ID"/> |
| <many-to-many class="org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicRoleImpl" column="ROLE_ID"/> |
| </set> |
| |
| <set name="usersAsSet" lazy="true" table="HIBUSER_GROUP" cascade="none" > |
| <key column="GROUP_ID"/> |
| <many-to-many class="org.apache.fulcrum.security.hibernate.dynamic.entity.ExtendedUser" column="USER_ID"/> |
| </set> |
| </class> |
| |
| <class name="org.apache.fulcrum.security.hibernate.dynamic.entity.ExtendedUser" table="EXTENDED_USER" > |
| <id name="id" type="long" column="HIBUSER_ID" unsaved-value="0"> |
| <generator class="native"/> |
| </id> |
| <property name="name" column="USERNAME" type="string"/> |
| <property name="password" column="PASSWORD" type="string"/> |
| <property name="NTDomain" column="NT_DOMAIN" type="string"/> |
| <property name="NTName" column="NT_USERNAME" type="string"/> |
| <property name="email" column="EMAIL" type="string"/> |
| <set name="groupsAsSet" lazy="true" table="HIBUSER_GROUP" inverse="true" cascade="none"> |
| <key column="USER_ID"/> |
| <many-to-many class="org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicGroupImpl" column="GROUP_ID"/> |
| </set> |
| </class> |
| |
| |
| </hibernate-mapping> |