• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB QL question

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to create an ejb ql that would retrieve all rows from the database that have client field as specified by user and the PO field is blank.

This is what I try:

SELECT OBJECT(q) FROM QuoteSchema q
WHERE q.client = ?1 and q.PO = ' '

but it does not return any rows back. then I change the query to

SELECT OBJECT(q) FROM QuoteSchema q
WHERE q.client = ?1 and q.PO IS NULL

It also does not return any rows.

Does anyone know how to specify the condition q.PO is blank in EJB QL?

Thanks
-Vili
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic