[jboss-user] [EJB3] - Re: Weired JPA named query @NamedQuery behaviour

Ilya Sorokoumov do-not-reply at jboss.com
Mon Jan 24 07:00:58 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/582747#582747

I still think that "a class-loader job" does not mean executing any javacode.
 http://www.objectdb.com/java/jpa/query/named http://www.objectdb.com/java/jpa/query/named
> A named query is a statically defined query with a predefined unchangeable query string.
if you have a static function it means that you can change a query through changing this function. The logic of the function lies in runtime level and you can change it by changing some function parameters. I suppose that Jboss/Hibernate reads all the annotations before you static code is executed.

P.S. I think that someone else can describe it more clearly. And what I'm saying is just my own opinion. And I'm sure that everyone can be mistaken.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110124/8f4ec3a4/attachment.html 

More information about the jboss-user mailing list