Sorry for the confusion. I have a simple model class (Part), which pulls from it's information from a single table (t_Part).
I would like a subclass of this model called (ProducedPart), that would still utilize NHibernate's caching mechanisms, but would only be instances of (Part) that have a foreign key relationship in a table called "PartProduction". I only need a read-only version of this model. I could always implement a Facade/Repository over this, but I was hoping to setup a mapping (via FNH) that would pull "t_Part" joined with "PartProduction". Thanks for fielding my question! On May 20, 5:14 pm, Hudson Akridge <[email protected]> wrote: > It's possible that you might find an answer a bit faster on the > nhibernate-users group, but we're always happy to try and help out. I'm not > sure I understand completely what you're trying to do. So let me attempt to > regurgitate it back and make sure we're both on the same page: > You want to be able to have a model class (Part) which pulls it's > information from two different table/views, one that's read-only and another > that is read-write? > > On Wed, May 20, 2009 at 4:03 PM, Brett Veenstra > <[email protected]>wrote: > > > > > I'm trying to produce a read-only view of several of my entities. > > > For example, a "Part" sits in a "Part" table (Read/Write), but a > > "ProducedPart" is a Part that has rows in a "Production" table (Read- > > Only). I want to be able to generate a distinct list of > > "ProducedPart" based on the production data. > > > What I think I need is a way to apply a filter during the Mapping > > phase that takes other Entities into account. How would I map this? > > > Is this a proper problem for NHibernate to solve? > > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
