[OJB-developers] oql
Brought to you by:
thma
From: Georg S. <ge...@me...> - 2002-03-11 10:33:43
|
Hi, I have a question regarding OQL. Let's say I have an object A that has a 1:1 relationship with an Object B. I then want to be able to say select allA from A where B=$1 I would then bind an instance of B which I retrieved earlier from the db to this query. In the background SQL-Code should be generated that checks for equivalence of the primary key fields (id). What is happening now, is that the object I pass in as $1 is directly bound to the prepared statement which doesn't work. Is this valid OQL, or am I assuming something wrong. regards Georg |