nHibernate Mapping file

Posted by bharat on Stack Overflow See other posts from Stack Overflow or by bharat
Published on 2010-05-17T16:33:10Z Indexed on 2010/05/17 16:40 UTC
Read the original article Hit count: 359

Filed under:

<property name="NetworkRunId" column="Network_Run_Id" />
<property name="StudyKey" column="Study_Key" insert="false" update="false" />
<property name="AnnualizationFactor" column="Annualization_Factor" />
<property name="CreateDate" column="Create_Date" />
<property name="ModifyDate" column="Modify_Date" />

<many-to-one name="StudyInfo" class="Study" lazy="false" cascade="save-update">
  <column name="Study_Key" />
</many-to-one>

<many-to-one name="MemberInfo"
             class="BusinessDataEntities.Domain.NetworkAdministration.VHAMemberCompany, BusinessDataEntities"
             lazy="false">
  <column name="Member_ID" />
</many-to-one>

<many-to-one name="NetworkRunStudyXrefInfo"
             class="BusinessDataEntities.Domain.NetworkAdministration.NetworkRunStudyXref, BusinessDataEntities"
             lazy="false">
  <column name="Network_Run_Id" />
</many-to-one>

<join table="[HCO_Spend_Network_Run_Study]">
  <key column="HCO_Spend_Id" />
  <property name="NetworkRunId" column="Network_Run_Id" insert="false" update="false"/>
</join>

issue with the

Network run id not exist in the first table but i have a join that is having the Network_Run_Id as property how do i fix this

© Stack Overflow or respective owner

Related posts about nhibernate-mapping