• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question about EJB QL

 
vitesse wei
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question:



Given answer is C,why A,B is wrong?
 
Meherdad Bomanbehram
Ranch Hand
Posts: 142
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The Reader entity has 2 entries whereas the book entity has 4 entries.
we want a collection thats less than 4 .
option A will give all the readers from the book entity thats 4 entries
option B will give all the reader entities joined to the book entity thats also 4 .
option C will give all the readers from the reader entity thjat have books . the result set is a collection of 2 hence this is the correct answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic