[jboss-user] [EJB3] - Re: Weired JPA named query @NamedQuery behaviour
Ilya Sorokoumov
do-not-reply at jboss.com
Mon Jan 24 04:41:36 EST 2011
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&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110124/4c04aa6c/attachment-0001.html
More information about the jboss-user
mailing list