I have a mapping along the lines of this.

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
namespace="Model.Entities" schema="etl" assembly="Model"
default-lazy="false">
  <class name="Model.Entities.DataField, Model" table="mdm_field">
    <id name="FieldId" column="field_id" type="int">
      <generator class="native" />
    </id>
    <many-to-one name="KeyField" class="Model.Entities.Key, Model"
column="field_id" />
  </class>
</hibernate-mapping>

Now in the database the field_id in the mdm_field table sometimes has
a value that does not exist in the related key_field table, so it is
basically broken referential integrity. Because of this when I load
the entity I get an error "No row with the given identifier exists".
How do I configure the mapping to work with this situation so it will
not die on this situation.

Craig

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to