Hi,

> From: Ionel GARDAIS [mailto:[EMAIL PROTECTED]
> I have designed my database with a table for managing
> M:N relationship.
> 
> My question is :
> do I need to create a bean for this "relationship only
> table" or do the tags added to the relation beans are
> enought for Xdoclet/JBoss to use the relation table
> without the need of a proprietary bean ?

You don't need a extra bean for the mapping.
In the example I sent you, the mapping between person and drink in m:n.

Have a look at 
     * @jboss.relation-mapping style="relation-table"
     * @jboss.relation-table table-name="Drink_Person_rel"
     *  create-table="true"

  Heiko
-- 
Bancotec GmbH      EMail: [EMAIL PROTECTED]
Calwer Str. 33     Telefon: +49 711 222 992 900
D-70173 Stuttgart  Telefax: +49 711 222 992 999
Ein Unternehmen der Cellent AG http://www.cellent.de/


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to