Where do I put the definition of a NamedQuery?
I am trying to modify the DAO Factory produced by MyEclipse to use a NamedQuery, rather then a dynamic one. The only place that I can position the named Query tag, without MyEclipse complaining, is outside of the class defnition. However, I do that, I get a “Undefined NamedQuery” exception thrown at runtime. So, where do I put the definition of a NamedQuery so that MyEclipse can see it?
My project is a POJO desktop application.