Hi Gian!
Nope, the problem is that I do not have the inverse relationship
because it is a many-to-many so Address doesn't know about its parent.
Second, I map using the table in this way:

      <idbag name="..." table="..." access="field.camelcase"
cascade="all">
        <collection-id column="..." type="int">
          <generator class="identity" />
        </collection-id>
        <key column="..." foreign-key="..." />
        <many-to-many class="..." foreign-key="...">
          <column name="..." />
        </many-to-many>
      </idbag>

even if I use bag instead of idbag I have the same issue. But I am
sure I am doing something wrong.
That's the reason I prefer to avoid the m-t-m but it is a design
requirement this time.

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