Hi,
Until "property-ref="PropertyNameFromAssociatedClass"" is implemented in the entity developer for NHibernate, (http://ayende.com/blog/3960/nhibernate- ... one-to-one), how would I map an optional association in the following scenario:
Customer.BillingAddress
[customer].[billing_address_id] [addresses].[address_id]
Cheers,
Andrei
NHibernate-One 2 one association with different field names
leads toShalex wrote:Please open Association editor, select the Constrained checkbox on any end of your one-to-one association, select Separate Foreign Key, and set column mapping for the foreign key. As a result, Entity Developer will add the property-ref attribute to your association in *.hbml.
Code: Select all