I am a little confused with the output from my tags relating to value
objects and relations...

I have the following method, tagged as follows:

    /**
    *    @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"
    *    @ejb.relation
    *    name="Order-LineItems"
    *    role-name="Order-Has-LineItems"
    *    target-ejb="OrderLineItem"
    *    target-role-name="OrderLineItem-In-Order"
    *    target-cascade-delete="yes"
    *     @ejb.interface-method
    *   view-type="local"
    */
    public abstract Collection getLineItems();

What I'd like is for the value object to contain a collection that contains
a collection of the LineItem value objects... When I try to compile it, I
get this:

[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);

the code generated doesn't correspond with the constructor... I'm sure I'm
doing something wrong...

Also, does anyone have an example of a 1:n bi-directional relationship
between 2 EJBs that also use Vos? I am having trouble with that as well.

Thanks,
Hunter 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to