I got bitten by a mapping bug today, and figured i'd raise a request
that a check for this error be included in the usual checks NH does
when building a session factory.

The scenario is that i have an Event with a many-to-many relationship
to  files:

Mapping:

   <idbag name="Files" table="cm_events_file" inverse="false"
cascade="all-delete-orphan"
         lazy="true" generic="true" batch-size="5">
      <cache usage="read-write" />
      <collection-id type="Int32" column="EventFileId">
        <generator class="hilo"/>
      </collection-id>
      <key column="eventId"/>
      <many-to-many class="SocialDance.Core.Domain.BaseFile,
SocialDance.Core"/>
    </idbag>


Notice anything missing ?? Hint - its the "column" field in the many-
to-many tag. Took about 20 mins to figure that one out.




--~--~---------~--~----~------------~-------~--~----~
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