From the spec:
"The NamedQuery and NamedQueries annotations can be applied to an
entity or mapped superclass."
Why was that limitation chosen? Why not on any class you like?
Is there a workaround available to put annotations on POJOs? For
example on a "Service" Java POJO which contains logic/queries that
stretch across several Entities?
Regards,