Hi,
i cannot generate classes because of a M:N relation.
I really don't see what i'm doing wrong. Would someone
help me?

I got 3 tables on my relational database:
- PartyHouse (wich has partyhouseyid as pk)
- PaymentMethod (wich has paymentmethodid as pk)
- PartyHouse_PaymentMethod (wich has partyhouseid and
paymentmethod as pks, it's the associative table)
The relation is M:N as 1 company may accept M payment
methods and 1 payment methods may be accepted by N
companies.

I only need visibility from the the PartyHouseBean,
unidirectional relation.

In my PartyHouseBean i have the folloewing method.

/**
         * 
         * Return all the payment methods accepted by this
PartyHouse.
         * 
         * @return java.util.Collection the payment methods
for this PartyHouse
         * 
         * @ejb.interface-method
         *  view-type="local"
         * 
         * @ejb.relation
         *  name="PartyHouse-PaymentMethod"
         * 
role-name="PartyHouse-accepts-some-PaymentMethods"
         *  target-ejb="PaymentMethod"
         * 
target-role-name="PaymentMethod-is-accepted-by-PartyHouse"
         *  target-multiple="yes"
         * 
         * @jboss.relation
         *  fk-column="PAYMENT_METHOD_ID"
         *  related-pk-field="paymentMethodID"
         * 
         * @jboss.target-relation
         *  fk-column="PARTY_HOUSE_ID"
         *  related-pk-field="partyHouseID"
         * 
         * @jboss.relation-mapping
         *  style="relation-table"
         * 
         * @jboss.relation-table
         *  table-name="PARTY_HOUSE_PAYMENT_METHOD"
         * 
         * 
         */
        public abstract Collection getPaymentMethods();
        

When i try to buil, i get the following exception.

[ejbdoclet] (XDocletMain.start                   54  )
<<The relation PartyHouse-PaymentMethod seems to be
many-to-many (m:n). You should therefore specify
weblogic:relation join-table-name="blabla".>>
   [ejbdoclet]
file:C:/eclipse/workspace/PartyPlace/PartyEJB/META-INF/xdoclet.xml:56:
XDoclet failed.
   [ejbdoclet]  at
xdoclet.DocletTask.start(DocletTask.java:461)
   [ejbdoclet]  at
xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:95)
   [ejbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
continues...


So, as u see it's asking me for a weblogic tag, i just
don't get it ( i also tried removing the
target-relation tags, but didn't work).

Thank u so much,
ltcmelo



______________________________________________________________________

Yahoo! Messenger - Fale com seus amigos online. Instale agora! 
http://br.download.yahoo.com/messenger/


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to