persistence@glassfish.java.net

constructor in query

From: sud <to_sud_at_yahoo.com>
Date: Fri, 16 Feb 2007 07:43:25 -0800 (PST)

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. Thanks -sud ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367