the persistence unit.
 The <code>NamedQuery</code> annotation can be applied to an entity or mapped superclass.

 <p> The following is an example of the definition of a named query 
 in the Jakarta Persistence query language:

 <pre>
    &#064;NamedQuery(
            name="findAllCustomersWithName",
            query="SELECT c FROM Customer c WHERE c.name LIKE :custName"
    )
 </pre>

 <p> The following is an example of the use of a named query:

 <pre>
    &#064;PersistenceContext
    public EntityManager