Yes, you should map it, since it's more than a junction table. Map with References from the TagBookmark (UserBookmark) class. You *can* also add HasMany mappings from Bookmark, Tag and User, mostly to get the delete cascades. Set those mappings to be Inverse.
2013/12/9 Mr.nuub <[email protected]> > I have the following tables: > > Bookmark > --------------- > BookmarkID > BookmarkTitle > BookmarkURL > > Tag > ----- > TagID > TagTitle > TagDescription > > TagBookmark > -------------------- > UserID > TagID > BookMarkID > > The primary (clustering) key of TagBookmark are all 3 ID fields > concatenated. > > I would like to: > > - Query bookmarks belonging to a specific user and tags. > - Query tags belonging to a specific user. > > Should I map the junction table TagBookmark? How would you map this in > fluent nhibernate? > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/groups/opt_out.
