[ojb-users] OQL Syntax (newbie)
Brought to you by:
thma
From: Lorenzo N. <ln...@we...> - 2002-06-06 07:05:17
|
Hello, I've a newbie question on OQL syntax support in OJB. I'm running some personal tests with OJB 0.9 after successfully running all junit tests and tutorials. For OQL, I'm referring to the ODMG 3.0 "bible" paper book (actually not very useful as a "user"...). If I run a simple OQL query using aliases like this: select c from test.Client c where c.id = $1 I get a parsing error calling oqlQuery.create(...): line 1: unexpected token: c java.lang.NullPointerException ojb.odmg.OQLQueryImpl.create(OQLQueryImpl.java:178) I tried unsuccessfully many "permutations" :-) of the query sintax. Running the same OQL without alias works! select c from test.Client where id = $1 My questions are: Am I doing some mistake? and: What is the level of support and compliance of ODMG 3.0 OQL in OJB? I browsed the documentation and many of the examples, but almost all OQL examples I've seen are rather "basic". Thanks Lorenzo WEBPLAN srl v.Civerchio 4 20159 MILANO - ITALY tel. +39-02-69311782 fax. +39-02-60857392 |