File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB-QL - Date Range

 
BoonHock Ng
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can EJB-QL or JBOSS-QL perform date range queries?

EG.
SELECT OBJECT(c) FROM customer c WHERE c.DOB BETWEEN ?1 AND ?2
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't look like it (at least not up to 2.0). You can download the 2.1 specs and check out the EJB-QL EBNF to see for yourself. 2.0 wants scalar values, or functions that produce scalar values to do what you want -- not dates.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic