<?xml version="1.0"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 1.1//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping>
    <class
        name="org.gridlab.gridsphere.services.core.security.role.impl.UserRole"
        table="userroles"
        >
        <cache usage="read-write"/>
        <id
            name="oid"
            column="gsoid"
            type="java.lang.String"
            length="32"
            >
            <generator class="uuid.hex"/>

        </id>

        <many-to-one
            name="user"
            column="sportletuser"
            class="org.gridlab.gridsphere.portlet.impl.SportletUserImpl">
        </many-to-one>
        <many-to-one
            name="role"
            class="org.gridlab.gridsphere.portlet.PortletRole">
        </many-to-one>

    </class>


</hibernate-mapping>
