The annotations at the class level look like this:
@Entity @NamedQuery(name = "Response.findAll", query = "select o from Response o") @NamedQuery(name = "Response.searchForText", query = "select o from Response o where o.question Like :text")
Is ther no way to associate multiple named queries with one EJB?
There is a way to add multiple Named Queries to your entity.
@NamedQueries( { @NamedQuery(name = "Response.findAll query = "select o from Response o"), @NamedQuery(name = "Response.searchForText" query = "SELECT o from Response o where o.question like :text")})