Ilya Sorokoumov [
http://community.jboss.org/people/ilya40umov] created the discussion
"Re: Weired JPA named query @NamedQuery behaviour"
To view the discussion, visit:
http://community.jboss.org/message/582703#582703
--------------------------------------------------------------
I guess that it's ok because when you are using annotations and named queries there is
not need to generate something. Named queries in annotations are completely fixed and
static and they are supposed to be read only once by Jboss. If you really want to generate
where expression you can always use EntityManager.createQuery.
see
http://download.oracle.com/javaee/5/api/javax/persistence/EntityManager.html
http://download.oracle.com/javaee/5/api/javax/persistence/EntityManager.html
Actually I have never tried to generate where expressions for namedQueries because they
should have been created before an application is deployed to an application server.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/582703#582703]
Start a new discussion in EJB3 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]