Hi,
i have an gerneal question. I'm going to put some NamedQueries into my EJB Project.
The descibed way of how to call a NamedQuery is
@PersistenceContext public EntityManager em; ... customers = em.createNamedQuery("findAllCustomersWithName") .setParameter("custName", "Smith") .getResultList();
A named query has to be unique and is accessible from your whole application.
Named queries will be externalizable to the xml dd