You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Joerg Heinicke <jo...@gmx.de> on 2004/03/09 15:11:55 UTC

[OTM] controllability of auto-retrieve

Hello,

I have a question about the controllability of auto-retrieve of dependent
collections in OTM. I know about the possible parameters auto-retrieve or even
otm-dependent, until now I always use the latter one. But AFAIK you can only
control the behaviour relation specific, but not transaction specific. Or in
other words: I have a list of objects for which I don't need and don't want to
retrieve the dependent collections. But for the detail view of one object I want
to have the dependent collections. Is this doable? I already found
addPrefetchedRelationship() on QueryByCriteria, which might be related, but only
works for one level. The dependent collection I only want for the detail view is
on the second level (Debitor <-1:1-> Person <-1:n-> Address).

Thanks for any hint,

Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: [OTM] controllability of auto-retrieve

Posted by Oleg Nitz <on...@ukr.net>.
Hi Joerg,

Are you aware of the proxy collections feature? 
I guess this is exactly what you need.

Regards,
 Oleg

On Tuesday 09 March 2004 14:11, Joerg Heinicke wrote:
> Hello,
>
> I have a question about the controllability of auto-retrieve of dependent
> collections in OTM. I know about the possible parameters auto-retrieve or
> even otm-dependent, until now I always use the latter one. But AFAIK you
> can only control the behaviour relation specific, but not transaction
> specific. Or in other words: I have a list of objects for which I don't
> need and don't want to retrieve the dependent collections. But for the
> detail view of one object I want to have the dependent collections. Is this
> doable? I already found addPrefetchedRelationship() on QueryByCriteria,
> which might be related, but only works for one level. The dependent
> collection I only want for the detail view is on the second level (Debitor
> <-1:1-> Person <-1:n-> Address).
>
> Thanks for any hint,
>
> Joerg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org