mapping churned values value vigilant nhibernate
i'm sincerely new nhibernate nonetheless i'm awaiting tons infos nhibernate mapping web, i am too stupid square information.
so problem is, i've got following model:
this i'd look. purify chairman twin castle properties.
in database i'd insist table.
so chairman quarrel have shippingstreetname streetname column, mapped shippingaddress.streetname address.streetname
i found an , nonetheless still haven't figured out by xml configuration.
thanks advance!
update: i found fortitude myself. finished by node works rather straightforward.
to grasp mapping castle shippingaddress i only supplement following
<component name="address" class="address">
<property name="streetname"></property>
<property name="zip"></property>
<property name="city"></property>
<property name="country"></property>
</component>
<component name="shippingaddress" class="address">
<property name="streetname" column="shippingstreetname" />
<property name="zip" column="shippingzip" />
<property name="city" column="shippingcity" />
<property name="country" column="shippingcountry" />
</component>
Comments
Post a Comment