<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
   <class name="org.picketlink.idm.impl.model.hibernate.HibernateRealm"
          table="jbid_realm">
      <cache usage="read-write"/>
      <id name="id"
          type="java.lang.Long"
          access="field">
         <column name="ID" />
         <generator class="native"/>
      </id>
      <property name="name"
                type="java.lang.String"
                access="field"
                lazy="false">
         <column name="NAME"
                 not-null="true"
                 unique-key="id"/>
      </property>
      <map name="properties"
           table="jbid_real_props"
           cascade="all, delete-orphan"
           fetch="subselect"
           lazy="extra">
         <cache usage="read-write"/>
         <key column="PROP_ID"/>
         <map-key type="string"
                  column="PROP_NAME"/>
         <element type="string"
                  column="PROP_VALUE"
                  not-null="true"/>
      </map>
   </class>
</hibernate-mapping>
