Hi all,
Please help me one more time ;).
I have the following two classes:
Customer <-1---------N-> Advertisement
I would like to use value-objects for data-encapsulation and
network-transfer.
As suggested by some of you I coded this:
CustomerEJB:
[code]
/**
* @ejb.interface-method view-type="local"
*
* @ejb.relation
* name="Customer-Advertisement"
* role-name="Customer-has-many-Advertisements"
*
* @ejb.value-object
*
* aggregate="ordermanager.advertisement.valueobjects.AdvertisementValue"
* aggregate-name="AdvertisementValue"
*
* members="ordermanager.advertisement.ejb.AdvertisementLocal"
* members-name="AdvertisementValue"
* relation="external"
* type="Collection"
*/
public abstract Collection getAdvertisementLocals();
/**
* @ejb.interface-method
*/
public abstract void setAdvertisementLocals(Collection advertisements);
[/code]
AdvertisementEJB:
[code]
/**
* @ejb.relation name="Customer-Advertisement"
* role-name="Advertisement-belongs-to-Customer"
* cascade-delete="yes"
*
* @jboss.relation
* fk-column="customerNumber"
* related-pk-field="customerNumber"
*
* @ejb.interface-method view-type="local"
*/
public abstract CustomerLocal getCustomer();
/**
* @ejb.interface-method view-type="local"
*/
public abstract void setCustomer(CustomerLocal Customer);
[/code]
I would like to do the following:
[code]
....
AdvertisementValue valueObj = managerFacade.getAdvertisement("a_id");
// print out the Customer related with this object:
System.out.println(valueObj.getCustomerValue().toString()); // this goes
wrong!!!
....
[/code]
This does not work because there is no
AdvertisementValue.getCustomerValue() method.
What do I have to add to get this method generated for me?
Many Thanks,
Harm de Laat
Informatiefabriek
The Netherlands
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user