<?xml version="1.0" encoding="UTF-8"?>
<!--
  ****************************************************************
ERmodel_v1.2/instances/catalogue/src/conceptualModels/2RegularHypergraph.xml 
****************************************************************

Copyright 2016, 2107 Cyprotex Discovery Ltd.

This file is part of the the ERmodel suite of models and transforms.

The ERmodel suite is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

ERmodel suite is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
****************************************************************
-->
<entity_model xmlns="http://www.entitymodelling.org/ERmodel">
   <presentation>
      <diagram>
         <deltaw>0</deltaw>
         <deltah>0</deltah>
      </diagram>
   </presentation>
   <entity_type>
      <name>table</name>
      <presentation>
         <x>2.4</x>
         <y>0.1</y>
         <w>1.9</w>
         <shape>
            <Top/>
         </shape>
      </presentation>
      <composition>
         <type>foreign key</type>
         <cardinality>
            <ZeroOneOrMore/>
         </cardinality>
         <identifying/>
         <inverse>of</inverse>
         <diagram>
            <path>
               <inverse>
                  <label>
                     <position>
                        <Left/>
                     </position>
                  </label>
               </inverse>
            </path>
         </diagram>
      </composition>
      <composition>
         <type>column</type>
         <cardinality>
            <OneOrMore/>
         </cardinality>
         <identifying/>
         <inverse>of</inverse>
         <diagram>
            <path>
               <destarmlen>1.5</destarmlen>
            </path>
         </diagram>
      </composition>
   </entity_type>
   <group>
      <presentation>
         <below>table</below>
      </presentation>
      <entity_type>
         <name>foreign key</name>
         <presentation>
            <shape>
               <MiddleLeft/>
            </shape>
         </presentation>
         <dependency>
            <name>of</name>
         </dependency>
         <composition>
            <type>foreign key column</type>
            <cardinality>
               <OneOrMore/>
            </cardinality>
            <identifying/>
            <inverse>part_of</inverse>
            <diagram>
               <path>
                  <inverse>
                     <label>
                        <position>
                           <Left/>
                        </position>
                     </label>
                  </inverse>
               </path>
            </diagram>
         </composition>
      </entity_type>
      <entity_type>
         <name>foreign key column</name>
         <dependency>
            <name>part_of</name>
         </dependency>
         <reference>
            <name>is</name>
            <type>column</type>
            <cardinality>
               <ExactlyOne/>
            </cardinality>
            <diagram>
               <path>
                  <srcarmlen>0.5</srcarmlen>
                  <destarmlen>0.5</destarmlen>
                  <label>
                     <position>
                        <Upside/>
                     </position>
                  </label>
               </path>
            </diagram>
         </reference>
         <presentation>
            <below>foreign key</below>
            <name>
               <Split/>
            </name>
            <shape>
               <BottomLeft/>
            </shape>
         </presentation>
      </entity_type>
      <entity_type>
         <name>column</name>
         <presentation>
            <rightOf>foreign key column</rightOf>
            <x>1.5</x>
            <shape>
               <BottomRight/>
            </shape>
         </presentation>
         <dependency>
            <name>of</name>
         </dependency>
      </entity_type>
   </group>
</entity_model>
