Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a NHibernate mapping. Inside I have a second thing:

XML
<join table="tOrder">
 <component name="Driver" class="Contact">
  <property name="Email" column="DriverEMail"/>
  <property name="Fax" column="DriverFax"/>
  <property name="Phone" column="DriverTelephone"/>
 </component>
</join>


Works fine BUT also I have driver first name and last name stored in another table tDriver. So I lack of second properties:

XML
<property name="FirstName" column="FirstName"/>
<property name="LastName" column="LastName"/>


Is it possible to fill some of component properties from another table? (Another join didn't done anything).
Posted
Updated 13-Jul-14 22:28pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900