Hi,

  We are working on mapping our domain model with NHibernate right now. We
are using XML-based hbm files to do it. We have several classes with
identifiers that are modeled as classes with 2-4 properties. When defining
these classes we use the composite-id and class=”X” to do it. The thing is
when we want to join with this table sometimes we don’t have all of the
fields from the composite-id in the table we’re trying to join. Is there
any way to make this work? I proposed taking the field(s) out of the ID
class that don’t match the joined tables then putting them in as properties
of the class itself. Then I can use property-ref to refer to them. Although
I can propose to change the model since I’m an architect it isn’t something
I really want to do if it’s possible to accomplish this some other way.



  Bear in mind that this is a legacy denormalized database. It is quite
frankly the worst database I’ve ever seen in my life but it’s what we have
to work with and it cannot be changed.



  I have many more NH questions but don’t want to put them all in the same
email so I’ll send them separately. Thanks!



*Sincerely,*

*Denis J. Lanza*

*Technical Architect*

*Dealogic*

*[email protected]*

*(212) 335-7168*

-- 
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.

Reply via email to