Has the syntax for specifying one-to-many changed for 2.0... I'm trying to
work through the new documentation and get my parent - composite-id child
working, and noticed the following that doesn't work with 1.2.x:

<set name="children">
    <key column="parent_id" not-null="true" inverse="true" cascade="all"/>
    <one-to-many class="Child"/>
</set>

For 1.2.x, it should be:

<set name="children" readonly="true" cascade="all">
    <key column="parent_id" />
    <one-to-many class="Child"/>
</set>

Thanks,

Matt



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Reply via email to