23 lines
1001 B
XML
23 lines
1001 B
XML
<?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>
|
|
|
|
<property name="Name" column="game_name" not-null="true" length="256"/>
|
|
<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"/>
|
|
<many-to-one name="Publisher" column="publisher_id" not-null="false" foreign-key="fk_game_publisher" />
|
|
|
|
<set access="field" name="systems" table="game_system_map" cascade="save-update">
|
|
<key column="game_id" />
|
|
<many-to-many class="System" column="system_id" />
|
|
</set>
|
|
</class>
|
|
|
|
</hibernate-mapping> |