I am using the latest versions of NHibernate (2.1.0) and LINQ to
NHibernate (1.0).
Here is the class:
public class SomeClass
{
  public virtual Int32 Id { get; private set; }
  public virtual SomeClass Parent { get; set; }
  public virtual ISet<SomeClass> Children { get; private set; }
}

And here is the mapping:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
assembly="NHibernateTest" auto-import="true" default-
access="property">
  <class name="SomeClass" table="`SOME_TABLE`">
    <id name="Id" column="`ID`">
      <generator class="identity"/>
    </id>
    <many-to-one name="Parent" column="`PARENT`"/>
    <set name="Children" inverse="true" cascade="all" outer-
join="true">
      <key column="`PARENT`" foreign-key="`ID`"/>
      <one-to-many class="SomeClass"/>
    </set>
  </class>
</hibernate-mapping>

I suspect the problem is with the mappings. Can you help?

Thanks,

Ricardo Peres

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NHibernate Contrib - Development Group" 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.ar/group/nhcdevs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to