The JPA can be configured through a combination of 3 mechanisms: reasonable defaults (i.e.Configuration by Convention), annotations within the class, and XML.
So, you can use the XML configuration to store your named queries outside of the annotations if you like. Consult the JPA spec.
[Message sent by forum member 'whartung' (whartung)]
http://forums.java.net/jive/thread.jspa?messageID=239832