users@glassfish.java.net

Re: pass primitive type in Query.setParameter

From: <glassfish_at_javadesktop.org>
Date: Wed, 19 Dec 2007 20:12:29 PST

Please check your code more carefully. The exception says that the query can't bind the [b]2nd[/b] parameter.

Whith Java 5 auto-boxing, you don't need to wrap int with an Integer.

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=250893