Is it possible to define one-to-many CMR using XDoclet.
I have dictionary bean:
=={JAVA CODE}========================================================
/**
* @ejb.bean
* name = "Dictionary"
* type = "CMP"
* cmp-version = "2.x"
* view-type = "local"
* schema = "Dictionary"
*
*/public abstract class DictionaryBean implements javax.ejb.EntityBean {
/** * @ejb.persistence column-name = "name" * @ejb.interface-method view-type = "local" * @ejb.pk-field * @ejb.relation * name = "Dictionary-Items" * role-name = "Dictionary-has-Items" * cascade-delete = "yes" */ public abstract String getName ();
/** * @ejb.interface-method view-type = "local" * */ public abstract void setName (String name);
// ***** // [snip] // *****
} // end of DictionaryBean
=={END OF JAVA CODE}====================================================and Items bean
=={JAVA CODE}======================================================== /** * @ejb.bean * name = "Items" * type = "CMP" * cmp-version = "2.x" * view-type = "local" * schema = "Items" */ public abstract class ItemsBean implements javax.ejb.EntityBean {
/**
* @ejb.persistence column-name = "name"
* @ejb.interface-method
* @ejb.relation
* name = "Dictionary-Items"
* role-name = "Item-in-Dictionary"
*/
public abstract String getName ();
/** * @ejb.interface-method */ public abstract void setName (String name);
// ***** // [snip] // *****
} // end of ItemsBean
=={END OF JAVA CODE}====================================================What I need is
Dictionary->name (1) <---> (*) Items->name
Currently XDoclet generates "ejb-jar.xml" with One-to-One relationship (which in my opinion is correct). But how can I specify that I want one-to-many. I could'n find the answer for that in XDoclet documentation.
Milen
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
