Hi, I tried the following Jdo-Query:

"(!_oCollMeasureSizeFit.isEmpty())"
+ " & (!collectionKundeMasstabelle.isEmpty())"
+ " & (collectionKundeMasstabelle.contains(oC))"
+ " & (oC.nIDKunde == oCustomer.nID)"
+ " & (!collectionGroesseMasstabelle.isEmpty())"
+ " & (collectionGroesseMasstabelle.contains(oS))"

+ " & (oS.nMesswertAbs > oC.nMesswertAbs)");

With the following variables:
"SizeMeasuretable oS;CustomerMeasuretable oC;"

And the Parameter:
"Customer oCustomer"

And got:
com.sun.jdori.query.JDOQueryException: Cannot access unbound variable
'oC'. Unbound variables do not have a corresponding contains clause.

But when I delete the + " & (oS.nMesswertAbs >
oC.nMesswertAbs)"-statement, it works. So I think there is a bug: JDO
(or OJB?) doen't remember "oC" after materializing "oS".
Any help is welcome. Tom.



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

Reply via email to