• Post Reply Bookmark Topic Watch Topic
  • New Topic

With EJB-QL, can I use ORDER BY clause?  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
With EJB-QL, can I use ORDER BY clause? How to write the query?
Thank you all!
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kate,
The "ORDER BY" part of EJB-QL is available in the EJB 2.1 version. Have you downloaded the EJB 2.1 specification from the EJB website? You'll find the entire EJB-QL BNF at the end of the EJB-QL chapter in the specification. It will tell you all about how it is used.
 
Kate Xu
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Nathaniel
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!