0
When making a filter of courses belonging to a given shift , the correct thing would be to make a foreach by walking through an object , but by doing so he gives an error ';' expected , I didn’t quite understand why he gave this and adding the ; as he is of error also...
@RequestMapping("/filtrarCursos/{idTurno}/{idTipoCurso}")
public String filtrarCursos(@PathVariable("idTurno") Long idTurno, @PathVariable("idTipoCurso") String idTipoCurso) {
try {
List<CursoTurno> cursoId = cursoTurnoRepository.findByTurnoId(idTurno);
for ( c : cursoId ) {
}
System.err.print( "\n--- kingSizeCursos: "+cursoId.size());
System.err.print( "\n--- idTurno: "+idTurno);
System.err.print( "\n--- idTipoCurso: "+idTipoCurso);
} catch (Exception e) {
mensagem = mensagemErro(e.getMessage());
}
return "";
}
In his
for
you did not put the object type c.– Roknauta
When I type, it’s a problem due to Cursoid returning an object =x
– Marcus Daniel