Hi all,

This is my problem:
I have a 1:N relation between objects Customer and Ticket.
I want to find all Tickets without Customer.

I try:
SELECT t FROM Ticket t WHERE t.customer=$1 order by t.id
with $1 = null

But I have the following error:
null
java.lang.NullPointerException
at org.exolab.castor.jdo.engine.DatabaseImpl.getLockEngine(DatabaseImpl.java:196)
at org.exolab.castor.jdo.engine.OQLQueryImpl.create(OQLQueryImpl.java:270)
at org.exolab.castor.jdo.engine.DatabaseImpl.getOQLQuery(DatabaseImpl.java:439)
....


My solution may be wrong. So what is the better way to find these tickets?

Thanks.

J.

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

Reply via email to