vgquotes/Src/VideoGameQuotes.Api/Mappings/Vote.hbm.xml
tmont 9a1f0347c0 * tests for user provider
* username is no longer required
* added ip address property to user
2011-02-10 21:04:13 +00:00

16 lines
668 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="Vote" table="vote">
<id column="vote_id" name="Id" type="int">
<generator class="identity" />
</id>
<property name="Created" column="created" not-null="true" />
<property name="Direction" column="direction" not-null="true" type="int" length="1" />
<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>