persistence@glassfish.java.net

JPQL: allow identification variable as constructor argument

From: Michael Bouschen <Michael.Bouschen_at_Sun.COM>
Date: Fri, 08 Dec 2006 14:11:22 +0100

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