You can not use target-multiple here because your
relationship is bi-directional. It is only used when
in a uni-directional relationship and the one
multiplicity side is blind. Just remove them and try
to see what will be generated. It's a good habit to
check the generated dd and you can find the problem
yourself. Of course the dd must be meaningful to you.
If not, have a look at both dtd references.

 --- James Ward <[EMAIL PROTECTED]> 的正文:> Hello
XDoclet friends.
> I am having a problem with CMR and Value Objects.  I
> would like to have
> value objects for both sides of the relationship,
> but it seems when I do
> so, I get a "Reentrant method call detected" error
> in JBoss.  Here is
> how I have my beans' relationships setup:
> 
> UserBean:
>   /**
>    * @ejb.interface-method
>    *       view-type="both"
>    *
>    * @ejb.relation
>    *    name="user-auction"
>    *    role-name="user-has-auction"
>    *    target-multiple="yes"
>    *
>    * @ejb.value-object
>    *   
> compose="com.ectropic.auctionhopper.core.AuctionTO"
>    *    compose-name="AuctionTO"
>    *   
>
members="com.ectropic.auctionhopper.cmp.interfaces.AuctionLocal"
>    *    members-name="Auction"
>    *    relation="external"
>    *    type="java.util.Collection"
>    *
>    */
>   public abstract java.util.Collection
> getAuctionLocals();
>   public abstract void
> setAuctionLocals(java.util.Collection
> auctionLocals);
> 
> 
> Auction Bean:
>  /**
>    *
>    * @ejb.relation
>    *    name="user-auction"
>    *    role-name="auction-has-user"
>    *    target-multiple="yes"
>    *
>    * @jboss.relation
>    *    fk-constraint="true"
>    *    fk-column="user_id"
>    *    related-pk-field="id"
>    *
>    * @ejb.value-object
>    *   
> compose="com.ectropic.auctionhopper.core.UserTO"
>    *    compose-name="UserTO"
>    *   
>
members="com.ectropic.auctionhopper.cmp.interfaces.UserLocal"
>    *    members-name="User"
>    *    relation="external"
>    *
>    */
>    public abstract UserLocal getUserLocal();
>    public abstract void setUserLocal(UserLocal
> userLocal);
> 
> 
> Please help.  I have tried everything, read tons of
> xdoclet-user posts,
> and beat my head against the wall.
> 
> Thanks.
> 
> -James
> 

> ATTACHMENT part 2 application/pgp-signature
name=signature.asc
 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to