Hi,

I'm quite new to NHibernate and I have a newbie question.

I want to be able to have two references to the same entity object.
Here is an example of what I want to do but as I understand it's not
supposed to work but I wonder if there is another way to accomplish
it:

public class CustomerMap : IAutoMappingOverride<Customer>
{
        public void Override(AutoMapping<Customer> mapping)
        {
            mapping.References<Address>(x => x.DeliveryAddress)
                .Column("AddressId")
                .Cascade.All();
            mapping.References<Address>(x => x.BillingAddress)
                .Column("AddressId");
                .Cascade.All();
        }
}

Thanks in advance!
/Ingo

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