Bugs item #475793, was opened at 2001-10-28 10:08
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=475793&group_id=31602
Category: ejbdoclet
Group: None
Status: Open
>Resolution: Fixed
Priority: 7
Submitted By: Frank Langelage (lafr)
Assigned to: Aslak Helles�y (rinkrank)
Summary: ejb-jar.xml: relation incorrect
Initial Comment:
I've got a unidirectional many-one relationship Address
- Country in my example sources.
The relationship-part in ejb-jar.xml is generated wrong
with the current cvs-snapshot.
Before the REFRACTOR_BRANCH was copied to the main
branch evering was OK.
In Address.java I wrote the following lines:
/**
* Country of this Address
*
* @ejb:interface-method
*
* @ejb:relation
* name="Country-Address"
* role-name="many-address-one-country"
* target-ejb="Country"
* target-role-name="one-country-many-address"
* target-multiple="yes"
*/
public abstract CountryLocal getCountry();
/**
* @ejb:interface-method
*/
public abstract void setCountry( CountryLocal
country_id );
ejb-jar looks like this then:
<ejb-relation-name>Country-Address</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>one-country-many-address</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>Address</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>country</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>many-address-one-country</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>Country</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
first <ejb-name> must be Country (one Country)
second <ejb-name> therefore must be Address
the <cmr-field> must be transferred to the Many
<ejb-relationship-role>
----------------------------------------------------------------------
>Comment By: Aslak Helles�y (rinkrank)
Date: 2001-10-29 17:31
Message:
Logged In: YES
user_id=49846
Should be ok now. Lost some stuff when we branched.
Please note that m:n relationships (both unidirectional and
bidirectional) have not been tested thoroughly yet. They
_might_ work. I close this one now until somebody tells me
they don't
----------------------------------------------------------------------
Comment By: Aslak Helles�y (rinkrank)
Date: 2001-10-28 10:18
Message:
Logged In: YES
user_id=49846
Will look at it ASAP
----------------------------------------------------------------------
Comment By: Aslak Helles�y (rinkrank)
Date: 2001-10-28 10:17
Message:
Logged In: YES
user_id=49846
Will look at it ASAP
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=475793&group_id=31602
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel