So after looking at the template file again carefully, I solved my
problem.  In order for the set ValueObject method include the code to
set the relation, you have to include a match line (even if it's just a
match="*").  In order for the other 3 methods to be generated, the
relationship seems to need to be a 1 to N relation.  I have yet to try
to generate an aggregate for a 1 to many relation, so we'll see if that
goes correctly when I get there (someone please correct me if I'm wrong
with that last part).

--Chris

On Sat, 2002-11-02 at 18:05, Chris Conrad wrote:
> Hello,
> 
> In the samples, CustomerBean aggregates AccountBean and composes
> AddressBean.  In the generated CustomerCMP.java file, a addAccount,
> removeAccount, addShippingAddress, etc. methods are created and the get
> and set ValueObject methods update the relationships. I cut and pasted
> this code into my bean and the add and remove methods are not generated
> and the set ValueObject method does not update the relation.  The
> relevant snippet from my bean is:
> 
>     /**
>      * @ejb.value-object
>      *     
> aggregate="net.sf.communities.common.interfaces.CommunitiesTypeValue"
>      *      aggregate-name="Type"
>      *     
> members="net.sf.communities.common.interfaces.CommunitiesTypeLocal"
>      *      members-name="CommunitiesType"
>      *      relation="external"
>      */
>     public abstract CommunitiesTypeLocal getType();
>     
>     public abstract void setType(CommunitiesTypeLocal type);
> 
> 
> I have tried this with and without the @ejb.relation information and
> neither generates the methods.  What am I missing that does the actual
> generation?
> 
> Thanks in advance,
> --Chris
> 
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: See the NEW Palm 
> Tungsten T handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user




-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to