Hi,

I'm a rookie to Xdoclet (and also to Hibernate!) .

The Hibernate manual in Section 7.2 shows how to use <composite-element>, which has the parent/child lifetime and cascading semantics that I want, and in particular it shows how to use a <many-to-one> within the <composite-element> to implement the "collection with association properties" pattern:

        <set>
                <key column="...">
                <composite-element...>
                        <property...>
                        <property..>
                        <many-to-one...>
                </composite-element>
        </set>

I don't really know how to generate this with Xdoclet. All I have to go on is the tags reference, so really I'm just guessing (see below). My other problem is that one of the objects in the <composite-element> needs to be a <component>, not a <property>... which means that inside the <composite-element>, it has to be a <nested-composite-element>.

Can somebody show me what the right Xdoclet tags would look like to generate a mapping like this?

Thanks a lot,
~mark



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to