ListarPostulantes Por tecnologia dos

parent dca3cb01
...@@ -19,6 +19,7 @@ import org.springframework.web.servlet.ModelAndView; ...@@ -19,6 +19,7 @@ import org.springframework.web.servlet.ModelAndView;
import java.sql.SQLOutput; import java.sql.SQLOutput;
import java.util.List; import java.util.List;
import java.util.Locale;
@Controller @Controller
...@@ -72,7 +73,7 @@ public class PostulanteController { ...@@ -72,7 +73,7 @@ public class PostulanteController {
public ModelAndView getPostTec(@PathVariable("name") String name){ public ModelAndView getPostTec(@PathVariable("name") String name){
System.out.println(name); System.out.println(name);
ModelAndView mv = new ModelAndView("list-test"); ModelAndView mv = new ModelAndView("list-test");
mv.addObject("lista", post.buscarPostulantesPorTecnologia(name)); mv.addObject("lista", post.buscarPostulantesPorTecnologia(name.toLowerCase()));
return mv; return mv;
} }
......
...@@ -7,6 +7,7 @@ import javax.persistence.GenerationType; ...@@ -7,6 +7,7 @@ import javax.persistence.GenerationType;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table; import javax.persistence.Table;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import java.util.Locale;
@Entity @Entity
@Table(name="tecnologia") @Table(name="tecnologia")
...@@ -28,7 +29,7 @@ public class Tecnologia { ...@@ -28,7 +29,7 @@ public class Tecnologia {
this.id = id; this.id = id;
} }
public String getNombre() { public String getNombre() {
return nombre; return nombre.toLowerCase();
} }
public void setNombre(String nombre) { public void setNombre(String nombre) {
this.nombre = 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