Hi! Have you tried using composite-id?
<composite-id> <key-property name="VersionId"/> <key-property name="SeqNum"/> </composite-id> -- Tapio Kulmala "Those are my principles, and if you don't like them... well, I have others" - Groucho Marx http://friendfeed.com/tapsakoo http://twitter.com/tapiokulmala http://www.linkedin.com/in/tapiokulmala On Fri, May 8, 2009 at 4:15 PM, epitka <[email protected]> wrote: > > Hi, > I am dealing with horrible legacy db, and need to map a collection by > using implicit relationships from table A to table B, where > table A has two columns that serve as implicit FK in table B. Now if I > have only one I could use property-ref to map it but with two I am > lost as how to do it. I tried adding two <key> elements > > <key column="VersionId" property-ref="VersionId"></key> > <key column="SeqNum" property-ref="SeqNum"></key> > > but intellisense gives me an error. Is there a way to map this? Or > could I just map VersionID and somehow use where clause based on the > value of SeqNum property? Or something else? > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
