Assuming I have table XXX and table YYY and they are in a M:N relationship. When I include the value object and
generate the cmp classes XDoclet (1.2.2) is generates the following code in the YYYCMP class


public void addXXX(com.mycompany.ejb.XXXValue added) throws javax.ejb.CreateException {
try {
java.lang.String pk = added.getXXXId();
com.mycompany.ejb..XXXLocalHome home = com.mycompany.ejb..XXXUtil.getLocalHome();


   com.mycompany.ejb.XXXLocal relation = home.create(added);
   getXXXs().add(relation);
 } catch (Exception e){
   if (e instanceof javax.ejb.CreateException)
     throw (javax.ejb.CreateException)e;
   else
     throw new javax.ejb.EJBException(e);
   }
}

This has the effect of creating the entity in the XXX table when what I really want is to create the
link between the XXX and YYY tables in the join table (lets say XXX_YYY)


Is there some way to tell XDoclet that I don't want to create the entity XXXLocal. I just want to
create the relationship?


C.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to