Tobias, public @interface javax.persistenc.NamedQuery has this annotation @Target({TYPE}) While I agree with your preference of having the query on the method, the JPA Interface doesnt allow this. I wonder if a backwards compatible change to the sp...