Posted By:
Peter_Kolesnikov
Posted On:
Tuesday, April 9, 2002 07:50 AM
Sorry if it is more simplier than I think but I did not find much info about @ejb:aggregate tag in doc. As far as I understand I can get ref to another dataobject in dataobject if I mark ralational field of corresponding ejb as @aggregate. It allows then passing of a number of dataobjects to remote client. for example: if in samplessrcjava estejbcmrCountryBean.java I put for getCities: /** * @return all cities of this country * * @ejb:interface-method view-type="local" * @ejb:relation * name="country-city" * role-name="one-country-ha
More>>
Sorry if it is more simplier than I think but I did not
find much info about @ejb:aggregate tag in doc. As far
as I understand I can get ref to another dataobject in
dataobject if I mark ralational field of corresponding
ejb as @aggregate. It allows then passing of a number
of dataobjects to remote client.
for example:
if in
samplessrcjava estejbcmrCountryBean.java
I put for getCities:
/**
* @return all cities of this country
*
* @ejb:interface-method view-type="local"
* @ejb:relation
* name="country-city"
* role-name="one-country-has-many-cities"
* target-role-name="one-city-belongs-to-one-
country"
* target-ejb="City"
* target-multiple="no"
* @ejb:aggregate
<----HERE IS MY NEW
AGGREGATE
* @weblogic:column-map
* foreign-key-column="country_id"
* key-column="id"
*
* @jboss:target-relation related-pk-field="id"
* fk-column="country_id"
*/
public abstract java.util.Collection getCities();
and as a result get following error:
<
bean class for a NULL interface name>>
thnx in advance
Peter
<<Less