code_junkie

NHibernate mapping to another object NOT on the ID

Nov 11th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <many-to-one name="_Township" column="ZipCode" foreign-key="ZipCode" class="HQData.Objects.Township, HQData" />
  2.  
  3. <set name="_Vendors" cascade="all">
  4. <key column="ZipCode" foreign-key="ZipCode"/>
  5. <one-to-many
  6. class="HQData.Objects.Vendor, HQData"/>
  7. </set>
Add Comment
Please, Sign In to add comment