2009/7/31 Jose Samonte <[email protected]> > Good day! > many-to-one is what I would do if I have a customer with many addresses, > but what if there is only one address per customer? >
you can have a many-to-one for persistence matters (for NH) and a ono-to-one for domain matters. The one-to-one relation can be represented in various ways in NH. For example: - a component can be way to represent a one-to-one - a many-to-one can be another way - a one-to-one with a many-to-one in the other side - a one-to-one with property ref - a <join><component> and so on. In some case I prefer a simple many-to-one delegating the unique in the logic. -- 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 -~----------~----~----~----~------~----~------~--~---
