persistence@glassfish.java.net

JPQL: add error msg for invalid collection relationship navigation

From: Michael Bouschen <Michael.Bouschen_at_Sun.COM>
Date: Mon, 20 Nov 2006 15:13:51 +0100

Hi Tom, hi Jielin,

I fixed issue 1518 "JPQL: missing error msg for navigation of collection
valued relationship":
https://glassfish.dev.java.net/issues/show_bug.cgi?id=1518

The following query is not valid, because it navigates through a
collection valued relationship:
  SELECT c FROM Customer c WHERE c.orders.totalPrice > 100
I added a check to class DotNode of the query compiler and a new error
message to the EJBException class. You find the source and test changes
attached.

Thanks!

Regards Michael