Why is the following query wrong:
SELECT s.name FROM Student s, Program p where s.subjectid=p.subjectId
The following
thread gives the details:
invalid ejb-ql However, the following thread says it is possible to join two entities by specifying them in FROM clause:
joining two entities in FROM clause The same logic is explained in
J2EE tutorial:
J2ee tutorial Please clarify which one is correct.
BTW, are there EJB-QL verifiers which can be used to verify our Queries apart from writing example applications and verifying ?