Skip to content

Instantly share code, notes, and snippets.

@johnathan-sewell
Created December 16, 2010 13:24
Show Gist options
  • Save johnathan-sewell/743391 to your computer and use it in GitHub Desktop.
Save johnathan-sewell/743391 to your computer and use it in GitHub Desktop.
Basic NHibernate Mapping File
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" auto-import="true">
<class name="My.Application.Paragraph, My.Application" lazy="false">
<id name="Id" access="field" column="Id" >
<generator class="identity" />
</id>
<property name="Text" access="field" column="Text"/>
<property name="DateCreated" access="field" column="DateCreated"/>
</class>
</hibernate-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment