Robert,

>This is why I added private Collection brokerHomesColl, and mapped that 
>in a Collection element in the BrokersToHomesBO.  When the select 
>happens, the brokerHomesColl gets automatically populated with BrokerBO 
>objects.  to get AT those objects you have to iterate through the 
>BrokersToHomesBO object, which is a collection in this case, and 
>retrieve the object within it.

Could you send me your repository_user.xml file to see how you define these attributes 
in OJB?

Thanks again
Sylvain


-----Message d'origine-----
De: Robert S. Sfeir [mailto:[EMAIL PROTECTED]]
Date: mercredi, 19. février 2003 17:24
À: OJB Users List
Objet: Re: M:N mapping: PLEASE HELP



On Wednesday, Feb 19, 2003, at 09:48 US/Eastern, 
<[EMAIL PROTECTED]> wrote:

> Mainly my question was: if I implement a qualified M:N mapping (as 
> explained in tutorial 3), how could I retrieve directly data. If I 
> take your example:
> How could I retrieve all Brokers for a certain Home (how can I 
> implement a method "getBrokers in the HomeBO class)?

This is why I added private Collection brokerHomesColl, and mapped that 
in a Collection element in the BrokersToHomesBO.  When the select 
happens, the brokerHomesColl gets automatically populated with BrokerBO 
objects.  to get AT those objects you have to iterate through the 
BrokersToHomesBO object, which is a collection in this case, and 
retrieve the object within it.

Either I'm not making sense, or I'm not understanding your question.

R

--
Robert S. Sfeir
Senior Java Engineer
National Institutes of Health
Center for Information Technology
Department of Enterprise Custom Applications
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to