All pastes #777410 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-11-16 20:09 UTC
rendered paste body
  <class name="NFSCars.Portal.Core.Models.File.File, NFSCars.Portal.Core" table="Files">
    <id name="FileID" access="property" column="FileID" type="Int32" unsaved-value="0">
      <generator class="native">
      </generator>
    </id>
    <many-to-one name="Game" access="property" cascade="none" class="NFSCars.Portal.Core.Models.Game.Game, NFSCars.Portal.Core" column="GameID" />
    <many-to-one name="Category" access="property" cascade="none" class="NFSCars.Portal.Core.Models.File.FileCategory, NFSCars.Portal.Core" column="CategoryID" />
    <many-to-one name="Author" access="property" cascade="none" not-found="ignore" class="NFSCars.Portal.Core.Models.User.User, NFSCars.Portal.Core" column="AuthorUserID" />
    <many-to-one name="UploadUser" access="property" cascade="none" class="NFSCars.Portal.Core.Models.User.User, NFSCars.Portal.Core" column="UploadUserID" />
    <many-to-one name="AdminUser" access="property" cascade="none" not-found="ignore" class="NFSCars.Portal.Core.Models.User.User, NFSCars.Portal.Core" column="AdminUserID" />
    <property name="Name" access="property" type="String">
      <column name="Name"/>
    </property>
    <property name="AuthorName" access="property" type="String">
      <column name="AuthorName"/>
    </property>
    <property name="AuthorEmail" access="property" type="String">
      <column name="AuthorEmail"/>
    </property>
    <property name="FileName" access="property" type="String">
      <column name="FileName"/>
    </property>
    <property name="FileSize" access="property" type="Int32">
      <column name="FileSize"/>
    </property>
    <property name="FileType" access="property" type="String">
      <column name="FileType"/>
    </property>
    <property name="Description" access="property" type="StringClob">
      <column name="Description"/>
    </property>
    <property name="DescriptionParsed" access="property" type="StringClob">
      <column name="DescriptionParsed"/>
    </property>
    <property name="Downloads" access="property" type="Int32">
      <column name="Downloads"/>
    </property>
    <property name="DownloadsWeek" access="property" type="Int32">
      <column name="DownloadsWeek"/>
    </property>
    <property name="Views" access="property" type="Int32">
      <column name="Views"/>
    </property>
    <property name="ViewsWeek" access="property" type="Int32">
      <column name="ViewsWeek"/>
    </property>
    <property name="DateCreated" access="property" type="DateTime">
      <column name="DateCreated"/>
    </property>
    <property name="DateUpdated" access="property" type="DateTime">
      <column name="DateUpdated"/>
    </property>
    <property name="LastComment" access="property" type="DateTime">
      <column name="LastComment"/>
    </property>
    <property name="Approved" access="property" type="Boolean">
      <column name="Approved" sql-type="tinyint" />
    </property>
    <one-to-one name="CarFeature" class="NFSCars.Portal.Core.Models.File.FileCarFeature, NFSCars.Portal.Core"/>
    <bag name="Images" table="FilesImages" lazy="true" cascade="none" inverse="true" generic="true"  batch-size="3">
      <key column="FileID" />
      <one-to-many class="NFSCars.Portal.Core.Models.File.FileImage, NFSCars.Portal.Core" />
    </bag>
    <bag name="Comments" table="Comments" where="OwnerType = 'file'" lazy="true" cascade="none" inverse="true" generic="true"  batch-size="3">
      <key column="OwnerID" />
      <one-to-many class="NFSCars.Portal.Core.Models.Comment, NFSCars.Portal.Core" />
    </bag>
  </class>