persistence@glassfish.java.net

Re: JPQL: add error msg for invalid collection relationship navigation

From: Tom Ware <tom.ware_at_oracle.com>
Date: Mon, 20 Nov 2006 15:34:53 -0500

Hi Michael,

  Looks good.

-Tom

Michael Bouschen wrote:

>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
>
>