Hi there I'm can't get the mapping file to load witha simple recursive bi-directional relationship, if I remove the mapping category loads, it will not load with the recursive mappping. Can some one give me a clue
cheers
WK
Hibernate version: 1.2 beta 2
Mapping documents:
<many-to-one name="ParentCategory" class="Website.DataAccess.Category" column="ParentId" cascade="none" />
<bag name="ChildCategory" table="tblCategory" cascade="save-update" inverse="true">
<key column="ParentId" />
<one-to-many class="Website.DataAccess.Category"/>
</bag>
Code between sessionFactory.openSession() and session.close():
public Category ParentCategory
{
get { return _ParentCategory; }
set { _ParentCategory = value; }
}
public IList ChildCategory
{
get { return _childCategories; }
set { _childCategories = value; }
}
Full stack trace of any exception that occurs:
can't load mapping file
Name and version of the database you are using: SQLserver 2000
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html