[EMAIL PROTECTED] wrote:
> Hello Cristof,
> 
> cf. developer list thread
> "superflous, long queries in CVS HEAD (Batch retrieval)"
> This seems to be the same problem.

OK. I tried the 3 solutions.

> Three solutions:
> 
> 1. downgrade to rc4 or earlier

Sorry, but in rc4 there were some problems. That's why
I'm running cvs. I think it was something with inheritance
and queries.

> 2. In class org.apache.ojb.broker.core.PersistenceBrokerImpl, about
> line 130,
> change
>  private boolean autoPrefetch = true
> to
>  private boolean autoPrefetch = false
> to switch off the feature that introduced the problem.

No difference. Seems to be something else.

> 3. upgrade to the newest version, Oleg says it has been fixed
>  (I have not had time to check myself.)

Does not work. It' exactly the same behaviour.

> Please tell us if this worked.

See above.

The problem seems to be, that ojb wants to check the foreign key
references and thus all proxies are fetched. What I do not really
understand, why are the foreign keys checked. I'm doing a simple
select of class A which has a reference to class B. B is a proxy.
But it is fetched immediatly. So what is the sense of a proxy?
I'm a little bit confused.

> One more question: Which is the type of the primary/foreign key?
> Is it a Java wrapper type such as Integer?

No it's simple int or String. In this case it's an int.

Thanks for any help

ciao
christof

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

Reply via email to