garfield wrote:
I am muddling my way through NHibernate and was wondering if it is possible to map an objecy across multiple tables.
For example, I have inherited a data structure with a customer table and an address table.
A customer can only have one address, so would like to map it into one object that combines the data from both tables.
can this be mapped?
Question: Why not map it as a one-to-one relationship? The end result is essentially the same, you just end up creating an Address object whose id points to Customer.