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 hu...@gmx.de on 2003/08/06 14:08:19 UTC

compare attributes in where clause using OJB OQL

Hi!

I need to find some objects, which have the same values in two of their
attributes, but the following example  seems not to work:

select allproduct from Product where id = productNumber

Product is a Class with attributes id, productNumber, ...
"select allproduct from Product where id = 1" returns the correct object.

It looks like OJB OQL only takes literals and no identifiers after
comparators. Is this true or is there any way to campare two attributes of an object?

Thanks a lot!
   hurle

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


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