I'm starting with JPA in netbeans and I set out to create a small maintainer of a course (school). I found a problem in obtaining a group of students according to the course, I have not given how to introduce the clause "where" or some grouper to save the records in a list:
public List<Alumno> alumnos(String curso){
List<Alumno> a = ejbFacade.findAll();
return a;
}
Could someone give me an idea of how to do it?