These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: limiting fields retrieved as part of a related entity
PostPosted: Thu Jan 25, 2007 3:03 pm 
Newbie

Joined: Fri Mar 31, 2006 11:18 am
Posts: 5
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.