Sorry, it's not important for unidirectional as I can safely make it
many-to-many but for bidirectional one-to-many it's a problem.
Thanks,
alex
>
> Hello guys,
>
> I need to use relation-table-mapping in one-to-many
> unidirectional relationship in JBoss.
> But it seems like it's not possible to generate with XDoclet1.2.
>
> /**
> * Account - Attachments one-to-many bidirectional
> *
> * @ejb.interface-method
> * @ejb.relation
> * name="Account-Attachment"
> * role-name="Account-has-Attachments"
> * target-ejb="Attachment"
> * target-role-name="Attachment-belongsto-Account"
> * target-multiple="false"
> * @jboss.relation-table
> * table-name="account_attachment"
> * create-table=${jboss.create.table}
> * remove-table=${jboss.remove.table}
> *
> * @jboss.relation
> * fk-constraint="false"
> * related-pk-field="attachmentId"
> * fk-column="attachmentId"
> * @jboss.target-relation
> * fk-constraint="false"
> * related-pk-field="accountId"
> * fk-column="accountId"
> */
> public abstract Collection getAttachments();
> public abstract void setAttachments();
>
> This will produce <foreign-key-mapping/> in jbosscmp-jdbc.xml.
> If I set target-multiple to true, then jbosscmp-jdbc.xml will
> be correct but ejb-jar.xml of course won't be.
>
> Any comments?
>
> Thanks,
> alex
>
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user