How you mapped the many to many .... relation table ?
Can you share some info on domain and mapping ? worked with many to many ..
many times and no many probs.
Just the classic question .. when you add an address to a person, do you
specify even the inverse relation ?
eg:
class Person{
IList<Address> Address{get;set;}
AddAddress (Address address) {
address.Persons.Add(this);
Address.Add(address);
}
}
On Tue, Jun 28, 2011 at 10:00 PM, raffaeu <[email protected]> wrote:
> Hi guys, I would like to get a nice explanation, even with a link, of
> how it works the many-to-many.
> I got it but what I can't get clear yet is how NHB is able to manage
> the persistance of a new object graph.
> Suppose we have the classic
>
> Person <many-to-many> Address
>
> if I create a Person and add some Address, all new, when I call
> Session.Save(person) the address are not saved.
> What should I use, cascade="all" on the <bag> tag in the person
> mapping?
> I do not want to use inverse true because the address may have many
> persons ...
> I would like to know if there is a nice explanation or tutorial about
> how to work with many-to-many
>
> --
> 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.
>
>
--
Gianluca Gravina
http://blogs.ugidotnet.org/thinkingingrava
--
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.