<?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.portal.PortalConfigSettings"
        table="portalconfigsettings">
        <cache usage="read-write"/>
        <id
            name="oid"
            column="gsoid"
            type="java.lang.String"
            length="32"
            >
            <generator class="uuid.hex"/>

        </id>

        <property name="CanUserCreateAccount" type="boolean" column="canusercreateacct"/>

        <property name="DefaultTheme" type="string" column="defaulttheme"/>

        <set name="DefaultGroups" cascade="all">
            <cache usage="read-write"/>
            <key column="defaultgroup_oid"/>
            <one-to-many class="org.gridlab.gridsphere.portlet.PortletGroup"/>
        </set>

        <map name="attributes" table="portalconfigattributes">
            <cache usage="read-write"/>
            <key column="gsoid"/>
            <index column="attribute" type="string"/>
            <element column="value" type="string"/>
        </map>
    </class>


</hibernate-mapping>
