No, it not look right.
Are you using the xsd with intellisense ?
http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx

2010/4/8 Brad <[email protected]>

> Ok So looking at the Child-Parent relationships the author gave in his
> examples I came up with this mapping for the above example.
>
> Does this look right?
>
> <class name="ClientOrder">
>    <id name="ClientOrderId">
>      <generator class= "identity"/>
>    </id>
>
>    <property name="OrderDate" />
>    <property name="Party" />
>
>    <list name="OrderProducts">
>        <key name="ProductId"/>
>        <property name="OrderAmount"/>
>        <property name="Price"/>
>        <one-to-many class="ClientOrderProduct " />
>    </list>
>
>    <many-to-one name="Client" column="ClientId" not-null="true"/>
>  </class>
>
> On Apr 8, 9:49 am, Fabio Maulo <[email protected]> wrote:
> > 2010/4/8 Tom Bushell <[email protected]>
>
> > Brad,
> > After visit the Roger's link have a look to this otherhttp://
> nhforge.org/doc/nh/en/index.html#example-parentchild
> > --
> > Fabio Maulo
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>


-- 
Fabio Maulo

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/group/nhusers?hl=en.

Reply via email to