ListarPostulantes Por tecnologia dos

parent dca3cb01
......@@ -19,6 +19,7 @@ import org.springframework.web.servlet.ModelAndView;
import java.sql.SQLOutput;
import java.util.List;
import java.util.Locale;
@Controller
......@@ -72,7 +73,7 @@ public class PostulanteController {
public ModelAndView getPostTec(@PathVariable("name") String name){
System.out.println(name);
ModelAndView mv = new ModelAndView("list-test");
mv.addObject("lista", post.buscarPostulantesPorTecnologia(name));
mv.addObject("lista", post.buscarPostulantesPorTecnologia(name.toLowerCase()));
return mv;
}
......
......@@ -7,6 +7,7 @@ import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.util.Locale;
@Entity
@Table(name="tecnologia")
......@@ -28,7 +29,7 @@ public class Tecnologia {
this.id = id;
}
public String getNombre() {
return nombre;
return nombre.toLowerCase();
}
public void setNombre(String nombre) {
this.nombre = nombre;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment