Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ques about EJB-QL

 
Giju George
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Find all orders that contain lineitems
The ans gievn in mastering EJB was :-
Select object(o) from orders o in(o.lineitems) l

Is this correct... ???

I answered:-
Select object(o) from orders o where o.lineitems IS NOT EMPTY.

Now, which one is correct..I am confused with both answers
 
Giju George
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
guys.. got the answer from Mikalai Zaikin's study guide

http://java.boot.by/bcd-guide/ch09s02.html

Both are the same.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!