From 86584e0f0964931018c0e1d05dac8193536d6d22 Mon Sep 17 00:00:00 2001 From: Giuli1297 Date: Wed, 3 Nov 2021 16:07:35 -0300 Subject: [PATCH] ListarPostulantes Por tecnologia dos --- curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java | 3 ++- curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java b/curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java index 44a786b..0b8442b 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java @@ -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; } diff --git a/curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java b/curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java index ce8e758..8b3cead 100644 --- a/curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java +++ b/curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java @@ -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; -- libgit2 0.26.0