2011-02-09 00:05:32 +00:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="VideoGameQuotes.Api" namespace="VideoGameQuotes.Api">
|
|
|
|
|
<class name="Game" table="game">
|
|
|
|
|
<id column="game_id" name="Id" type="int">
|
|
|
|
|
<generator class="identity" />
|
|
|
|
|
</id>
|
|
|
|
|
|
2011-02-12 23:53:43 +00:00
|
|
|
|
<property name="Name" column="game_name" not-null="true" length="255"/>
|
|
|
|
|
<property name="Website" column="website" not-null="false" length="255"/>
|
2011-02-09 00:05:32 +00:00
|
|
|
|
<property name="Created" column="created" not-null="true" />
|
|
|
|
|
<property name="Screenshot" column="screenshot" not-null="false" length="10240" />
|
|
|
|
|
<property name="Region" column="game_region" not-null="true" />
|
|
|
|
|
|
|
|
|
|
<many-to-one name="Creator" column="creator" not-null="true" foreign-key="fk_game_user"/>
|
|
|
|
|
|
2011-02-16 10:11:55 +00:00
|
|
|
|
<set access="nosetter.camelcase" name="Systems" table="game_system_map" cascade="save-update">
|
2011-02-09 00:05:32 +00:00
|
|
|
|
<key column="game_id" />
|
2011-02-12 23:53:43 +00:00
|
|
|
|
<many-to-many class="VideoGameQuotes.Api.GamingSystem" column="system_id" />
|
2011-02-09 00:05:32 +00:00
|
|
|
|
</set>
|
|
|
|
|
|
2011-02-16 10:11:55 +00:00
|
|
|
|
<set access="nosetter.camelcase" name="Publishers" table="game_publisher_map" cascade="save-update">
|
2011-02-12 23:53:43 +00:00
|
|
|
|
<key column="game_id" />
|
|
|
|
|
<many-to-many class="VideoGameQuotes.Api.Publisher" column="publisher_id" />
|
|
|
|
|
</set>
|
|
|
|
|
</class>
|
2011-02-09 00:05:32 +00:00
|
|
|
|
</hibernate-mapping>
|