Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <hibernate-mapping
- auto-import="true"
- default-lazy="true"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- namespace="Rhino.Security.Model"
- assembly="Rhino.Security"
- xmlns="urn:nhibernate-mapping-2.2">
- <class name="EntitiesGroup" table="EntitiesGroups">
- <cache usage="read-write" region="rhino-security"/>
- <id name="Id" access="property" column="Id" type="System.Guid" unsaved-value="00000000-0000-0000-0000-000000000000">
- <generator class="guid.comb"></generator>
- </id>
- <property name="Name" access="property" type="String">
- <column name="Name" length="255" not-null="true" unique="true"/>
- </property>
- <many-to-one name="Parent" access="property" class="EntitiesGroup" column="Parent" />
- <set name="DirectChildren" access="property" table="EntitiesGroup"
- lazy="true" inverse="true">
- <cache usage="read-write" region="rhino-security"/>
- <key column="Parent" />
- <one-to-many class="EntitiesGroup"/>
- </set>
- <set name="Entities" access="property"
- table="EntityReferencesToEntitiesGroups" lazy="true">
- <cache usage="read-write" region="rhino-security"/>
- <key column="GroupId" />
- <many-to-many class="EntityReference" column="EntityReferenceId"/>
- </set>
- <set name="AllChildren" access="property" table="EntityGroupsHierarchy" lazy="true" inverse="true">
- <cache usage="read-write" region="rhino-security"/>
- <key column="ParentGroup" />
- <many-to-many class="EntitiesGroup" column="ChildGroup"/>
- </set>
- <set name="AllParents" access="property" table="EntityGroupsHierarchy" lazy="true">
- <cache usage="read-write" region="rhino-security"/>
- <key column="ChildGroup"/>
- <many-to-many class="EntitiesGroup" column="ParentGroup"/>
- </set>
- </class>
- </hibernate-mapping>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement