Who is the owner of the persistent representation of that domain ? 2009/7/14 Brian <[email protected]>
> > Hello, > > I'm struggling with the appropriate way to map a relationship. My > domain model is as follows: > > Review > - IReviewable ReviewedItem > > Book : IReviewable > - Set Reviews > User :IReviewable > - Set Reviews > > I can't figure out the appropriate way to map this such there is a > single table to store all Reviews and a different table for Book and > User. My thought was that Review needed an <any> mapping for > ReviewedItem and the Book and User classes would need a <one-to-many>. > However the <one-to-many> doesn't work. <many-to-any> is incorrect > because the reviews aren't sharable between books and users. > > Any thoughts? > > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
