persistence@glassfish.java.net

Re: JPQL: allow identification variable as constructor argument

From: Tom Ware <tom.ware_at_oracle.com>
Date: Fri, 08 Dec 2006 09:34:52 -0500

Hi Michael,

  The changes look good to me.

-Tom

Michael Bouschen wrote:

>Hi Tom, hi Jielin,
>
>attached you find my changes to fix issue 1421 "JPQL: allow
>identification variable as constructor argument":
>https://glassfish.dev.java.net/issues/show_bug.cgi?id=1421.
>
>With this change a query may use an identification variable as
>constructor argument, e.g
> SELECT new mypackage.EmployeeDetail(emp) FROM Employee emp WHERE ...
>This fix turned out to be a one-liner, because I can use a non-terminal
>symbol Jielin recently introduced for another fix.
>
>Thanks!
>
>Regards Michael
>
>