Hi all,
I seem to be encountering a parsing problem with OQLQuery,
the code snippet is as follows :
-----------------------------------------------------------------
// get existing instances of DeliveryOrder
OQLQuery do_query = db.getOQLQuery
(
"select d from com.igine.crossfire.ent.order.DeliveryOrder d " +
"where creatorCompanyID = $1"
);
do_query.bind("igine");
QueryResults rst = do_query.execute();
-----------------------------------------------------------------
After stepping through the source, I come to the point where
it is going throught the "com.igine.crossfire.ent.order" part
of the query string.
When it came to "order", the token value changes to 46,
which looks like it's expecting the next token to be part
of an SQL ORDER BY clause.
However, this behaviour is quite incorrect.
The "order" string is part of the package name (!!).
The current workaround is to do something like renaming my package
from "ent.order" to "ent.ord", for example.
This is feasible right now only because it's a prototype app,
but the production code is using "ent.order" and it'd be quite
a bit of effort to change all the package references because
OQLQuery is taking it as an ORDER BY clause.
Low Ee Mien
[EMAIL PROTECTED]
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev