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="Vote" table="vote">
|
|
|
|
|
<id column="vote_id" name="Id" type="int">
|
|
|
|
|
<generator class="identity" />
|
|
|
|
|
</id>
|
|
|
|
|
|
|
|
|
|
<property name="Created" column="created" not-null="true" />
|
2011-02-10 21:04:13 +00:00
|
|
|
|
<property name="Direction" column="direction" not-null="true" type="int" length="1" />
|
2011-02-09 00:05:32 +00:00
|
|
|
|
|
|
|
|
|
<many-to-one name="Voter" column="voter_id" not-null="true" foreign-key="fk_vote_user"/>
|
|
|
|
|
<many-to-one name="Quote" column="quote_id" not-null="true" foreign-key="fk_vote_quote" />
|
|
|
|
|
</class>
|
|
|
|
|
|
|
|
|
|
</hibernate-mapping>
|