This is similar to what I have been using but with get and setters for the
related value objects rather than interfaces.. The examples have both, which
is the correct way to handle this ?

If the result should be to use the value object, how do you get the correct
local/remote interface from that ? In some cases it's better to have the
values, in others it is better to have the interface and find the values by
another call (if you are setting things...)

Any hints to the best way to do this would be appreciated!

Thanks, Colin


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Oliver
George
Sent: Thursday, 28 November 2002 9:04 PM
To: Herve Tchepannou
Cc: xdoclet
Subject: Re: [Xdoclet-user] ejb.value-object



> check out:
> http://xdoclet.sourceforge.net/valueobjects.html

That doco is great.  A couple of suggetsions though.

1. Someone should put a link to it at:

http://xdoclet.sourceforge.net/1.2beta/tags/ejb-tags.html#@ejb.value-object%
20(0..*)

2. That page doesn't include a 1:1 relation (only 1:m), this is what I
found in the samples which seems to work for me.

    /**
     * Owner of this account.
     *
     * @ejb.value-object
     *    aggregate="test.interfaces.CustomerNormalValue"
     *    aggregate-name="OwnerNormalValue"
     *    match="*"
     */
    public abstract test.interfaces.Customer getOwner();

    /**
     * Owner of this account.
     */
    public abstract void setOwner(test.interfaces.Customer owner);

cheers, Oliver.

--
Oliver George <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to