vgquotes/Src/VideoGameQuotes.Api/Mappings/Vote.hbm.xml

16 lines
644 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="Value" column="point_value" not-null="true" />
<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>