users@glassfish.java.net

Re: EJB is confused what it is seeing?

From: <glassfish_at_javadesktop.org>
Date: Wed, 22 Aug 2007 14:45:57 PDT

Hi Russ,

> I read you point about using positional parameters.
> I think what you are recommending is I use a dynamic
> query string instead of a positional query string as
> positional parameters are not allowed in
> NamedQueries by the Spec. Is this correct?

No, you can use either positional or named parameters in a named query. Where in the spec did you see this limitation? It is also a better practice to use NamedQueries.

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

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