views:

233

answers:

1

I Have a class Group like this:

public class Group {

public int GroupId{get;set;}

public string GroupName{get;set;}

public IList ParentGroups{get;set;}

public IList ChildGroups{get;set;}

}

I want to generate NHibernate mapping for this and generate schema so that there is a group table and a group association table. Is this possible in NHibernate? If so, can somebody point me in the right direction.

A: 

You can have a look here

Sly
Thank you but that example has a node that has ONE parent and many children. In my case, each node can have one or Many parents.
darthjit