On Fri, Feb 16, 2007 at 07:43:25AM -0800, sud wrote:
> Is it possible to pass a primitive type as a constructor argument in a JPQL query. Here is an example of what I'm trying to do:
>
> SELECT DISTINCT new myPackage.MyClass(c.id, c.desc, true) FROM Entry c
>
> The boolean true argument is where my code barfs.
Yes this is possible. Howver, booleans are not a part of ANSI SQL so that is
probably why your code barfs.
Wouter van Reeven
--
People: "If she weighs the same as a Duck, she's made of wood!"
Sir Bedevere: "And therefore...?"