<?xml version='1.0' encoding='UTF-8'?>

<!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.alfresco.repo.domain.hibernate.VersionCountImpl"
         proxy="org.alfresco.repo.domain.VersionCount"
         table="version_count"
         dynamic-update="false"
         dynamic-insert="false"
         select-before-update="false"
         optimistic-lock="version" >
      <!-- composite PK -->
      <composite-id name="key" class="org.alfresco.repo.domain.StoreKey">
         <key-property name="protocol" length="100" />
         <key-property name="identifier" length="100" />
      </composite-id>
      <property name="versionCount" column="version_count" type="int" not-null="true" />
   </class>
   
</hibernate-mapping>
