It appears that @NamedQueries must be attached to an @Entity class, and are not found if they are attached to a @Stateless class.
This seems odd to me. Many of my named queries are not logically associated with only a single entity. It would seem to make the most sense that my named queries should be defined on my DAO SLSB, but this doesn't work. Is this "by design"? The spec doesn't really elaborate on where @NamedQuery should be allowed. Thanks, Jeff Schnitzer View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925783#3925783 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925783 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user