Can anyone provide me with a web-link which describes attribute-based simple one-to-many mapping very clearly?
For example (A company can have only one country of origin. But there are many Companies in a Country):
class Company
{
}
class Country
{
IList<Company> Items;
}
For your example class, and using a bag for an unordered collection:
produces the following hbm.xml: