Fluent-NHibernate: How does one translate composite-element tag to fnh?
Posted
by epitka
on Stack Overflow
See other posts from Stack Overflow
or by epitka
Published on 2010-06-02T18:36:24Z
Indexed on
2010/06/03
9:44 UTC
Read the original article
Hit count: 166
fluent-nhibernate
How do we express this in FNH?
<class name="Order" .... >
....
<set name="PurchasedItems" table="purchase_items" lazy="true">
<key column="order_id">
<composite-element class="Purchase">
<property name="PurchaseDate"/>
<property name="Price"/>
<property name="Quantity"/>
<many-to-one name="Item" class="Item"/> <!-- class attribute is optional -->
</composite-element>
</set>
© Stack Overflow or respective owner