<?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">
<!-- 
    Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
    <class name="com.shop.model.Bigtype" table="bigtype" catalog="ktshop">
        <id name="bigtypeid" type="java.lang.Integer">
            <column name="bigtypeid" />
            <generator class="identity" />
        </id>
        <property name="bigtypename" type="java.lang.String">
            <column name="bigtypename" />
        </property>
        <set name="smalltypes" table="smalltype" cascade="save-update" inverse="false">
   <key column="bigtypeid" not-null="true" />
   <many-to-many class="com.shop.model.Smalltype"
    column="smalltypeid" />
  </set>       
    </class>
</hibernate-mapping>