Hi Matthew et al.,

It seems that this returns class A objects, not the class C objects I'm after. Is there something else to do? Can this be done with the PB api?

Thanks,

Phil

Matthew Baird wrote:
you can do this.
try binding your parameters, however
select ... where a.d.e =$1
then query.bind("foo");

-----Original Message----- From: Phil Warrick [mailto:[EMAIL PROTECTED]] Sent: Tue 2/4/2003 7:20 PM To: OJB Users List Cc: Subject: OQL query help: need PB api?



Hi,

I've been able to do all my queries with OQL so far, but I think I need
to drop down to the PB API for the following (valid OQL) query:

"select a.b.c from " + A.class.getName() +
+ " where a.d.e = \"foo\" "

(i.e. I want to return objects of the same class as the c reference:
let's call them class C objects.)

Firstly, am I right that I can't do this with OJB's OQL? Second, can I
do this with the PB? Could someone take a crack at what it would look like?

Thanks,

Phil


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






------------------------------------------------------------------------

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


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

Reply via email to