In the Castor 0.9.5 examples (the JDO Example) I've the OQL Query Analyzer GUI tool 
and tried to run the query:

SELECT o FROM myapp.Product o WHERE product.group.id=3

I get an exception:

org.exolab.castor.jdo.QueryException: An unknown field was requested: product.group.id 
(myapp.Product AS prod)
        at 
org.exolab.castor.jdo.oql.ParseTreeWalker.checkProjection(ParseTreeWalker.java:485)
        at 
org.exolab.castor.jdo.oql.ParseTreeWalker.checkWhereClause(ParseTreeWalker.java:566)
        at 
org.exolab.castor.jdo.oql.ParseTreeWalker.checkWhereClause(ParseTreeWalker.java:590)
        at 
org.exolab.castor.jdo.oql.ParseTreeWalker.checkWhereClause(ParseTreeWalker.java:590)
        at 
org.exolab.castor.jdo.oql.ParseTreeWalker.checkErrors(ParseTreeWalker.java:236)
        at org.exolab.castor.jdo.oql.ParseTreeWalker.<init>(ParseTreeWalker.java:137)
        at org.exolab.castor.jdo.engine.OQLQueryImpl.create(OQLQueryImpl.java:275)
...

Am I asking the wrong question (in which case how should the query be formulated)?

Or is there a problem with my database (HypersonicSQL)?

Or is it a bug?

:-)

TIA
Paul Tetley
AeM Group
Perth, Western Australia

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to