I apologize for the obtuse subject line. I'm finding this question hard to summarize.
Scenario: I have an Account entity with a lot of properties. I have a Transaction entity that has a collection of TransactionDetail entities. Each TransactionDetail entity has a reference to an Account entity. If I retrieve a Transaction entity, I don't want the full set of properties belonging to the Account entity to be retrieved for every TransactionDetail.
If I were modelling this without regard for NHibernate, I might create a base AccountReference entity with a subset of properties, and then inherit the Account entity from AccountReference, which would implement the additional properties. The TransactionDetail entity would then have a reference to the AccountReference entity.
Any ideas on how I could model/map this?
Thanks,
Daniel
|