• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query Language question

 
vasu maj
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is the order by clause not there in EJB Query Language? How do I do ordering?
Thanks,
Vasu
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ORDER BY clause was not included in the EJB 2.0 specification. It has been added in the EJB 2.1 specification, though. This means that for the purpose of the exam, there is no ORDER BY clause.
To palliate this limitation, you have to make your ordering on the Java side after receiving the collection of objects.
[ April 06, 2004: Message edited by: Valentin Crettaz ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic