public class MainClass
    {
      public virtual long MainKey {get; set;}
      public virtual SubClass SubInstance {get; set;}
    
      public class SubClass
      {
        public virtual long SubKey {get;set;}
      }
    }


can be mapped as:

    <class name="MainClass" table="Main">
      <id name="MainKey" column="MainId" type="Int64">
        <generator class="identity" />
      </id>
      <many-to-one name="SubInstance" class="MainClass+SubClass" 
Column="SubId"/> 
    </class>
    
    <class name="MainClass+SubClass" table="Sub">
      <id name="SubKey" column="SubId" type="Int64">
        <generator class="identity" />
      </id>
    </class>

So the plus sign is key
(I believe that java-hibernate uses the dollar sign $ for this)

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/i7KogadEoQ0J.
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.

Reply via email to