rendered paste body<hibernate-mapping>
<class name="vitalvinyl.model.media.Label" table="`LABEL`">
<id name="ID" column="`ID`" type="long" unsaved-value="-1">
<generator class="native"/>
</id>
<version name="versionID" column="`VERSIONID`" type="long" unsaved-value="negative"/>
<property name="name" column="`NAME`" type="string" not-null="true" unique="true"/>
<property name="description" column="`DESCRIPTION`" type="text"/>
<many-to-one name="distributor" column="`DISTRIBUTORID`" class="vitalvinyl.model.item.Distributor"/>
<list name="images" table="`LABELIMAGE`" cascade="all-delete-orphan">
<key column="`LABELID`"/>
<index column="`SORTINGID`"/>
<one-to-many class="vitalvinyl.model.item.Image" />
</list>
<list name="labelauthors" table="`LABELAUTHORS`" cascade="all-delete-orphan">
<key column="`LABELID`"/>
<index column="`SORTINGID`"/>
<one-to-many class="vitalvinyl.model.media.Author"/>
</list>
<property name="website" column="`WEBSITE`" type="text"/>
<many-to-one name="country" column="`COUNTRYID`" class="vitalvinyl.model.Country"/>
<property name="digital" column="`DIGITAL`" type="boolean"/>
<property name="approved" column="`APPROVED`" type="boolean"/>
</class>
</hibernate-mapping>