Skip to content

Instantly share code, notes, and snippets.

@joeybeninghove
Created August 11, 2009 18:16
Show Gist options
  • Save joeybeninghove/166012 to your computer and use it in GitHub Desktop.
Save joeybeninghove/166012 to your computer and use it in GitHub Desktop.
<class name="NHibernate.Auction.Category, NHibernate.Auction">
<id name="Id" column="ID"/>
...
<bag name="Items" table="CATEGORY_ITEM" lazy="true">
<key column="CATEGORY_ID"/>
<many-to-many class="NHibernate.Auction.Item, NHibernate.Auction" column="ITEM_ID"/>
</bag>
</class>
<class name="NHibernate.Auction.Item, NHibernate.Auction">
<id name="id" column="ID"/>
...
<!-- inverse end -->
<bag name="categories" table="CATEGORY_ITEM" inverse="true" lazy="true">
<key column="ITEM_ID"/>
<many-to-many class="NHibernate.Auction.Category, NHibernate.Auction" column="CATEGORY_ID"/>
</bag>
</class>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment