I've got it now...

When the next version is posted, will the documentation be updated? Some of
these tags for VO stuff aren't under the ejb.value-object section in the
docs... If that "Using Value Objects" doc didn't exist, I wouldn't have
known they existed.

Hunter

> From: Andrew Stevens <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: 25 Mar 2003 01:09:14 +0000
> To: [EMAIL PROTECTED]
> Subject: Re: [Xdoclet-user] A Little Confused with Output from Value Object
> Stuff With Relations
> 
> On Mon, 2003-03-24 at 22:47, Hunter Hillegas wrote:
>>     /**
>>     *    @ejb.value-object
>>     *    compose="com.liberationmedia.commerce.vo.OrderLineItemValueObject"
>>     *    compose-name="OrderLineItemValueObject"
>>     *    
>> members="com.liberationmedia.commerce.interfaces.OrderLineItemLocal"
>>     *    members-name="OrderLineItem"
>>     *    relation="external"
>>     *    type="Collection"
> ...
>> [javac] 
>> /Users/hunter/Desktop/groundswell-commerce/gen-src/com/liberationmedia/comme
>> rce/entity/OrderCMP.java:60:
>> create(java.lang.Integer,java.lang.String,double,double,int) in
>> com.liberationmedia.commerce.interfaces.OrderLineItemLocalHome cannot be
>> applied to (com.liberationmedia.commerce.vo.OrderLineItemValueObject)
>>     [javac]     
>> com.liberationmedia.commerce.interfaces.OrderLineItemLocal relation =
>> home.create(added);
> 
> Since you're using a composition not an aggregation, then adding new
> line items via the VO would involve creating new items.  This is done by
> calling create on the Item bean, however, this requires a suitable
> create method (taking the nested VO as an argument) to be present.  It
> looks like the compiler can't find a create method with the right
> signature in your Item local home interface.
> 
> This is what I meant by "If you're using composite VOs, you'll need to
> add appropriate ejbCreate methods in the related bean class as well." in
> my post earlier this evening.
> 
> 
> Andrew.
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to