Commit 7b2e1fe1 by Joel Florentin

merge experencia en tecnologia

parents ba7b03ad 753b5227
......@@ -19,12 +19,6 @@ import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import java.sql.SQLOutput;
import java.util.List;
import java.util.Locale;
......@@ -94,4 +88,6 @@ public class PostulanteController {
}
}
......@@ -63,10 +63,4 @@ public class PostulanteTecnologia {
}
}
package com.roshka.repositorio;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
import com.roshka.modelo.Postulante;
import com.roshka.modelo.PostulanteTecnologia;
public interface PostulanteRepository extends JpaRepository<Postulante,Long> {
......@@ -30,4 +31,8 @@ public interface PostulanteRepository extends JpaRepository<Postulante,Long> {
"having sum(fecha_hasta-fecha_desde)>?1 * INTERVAL '1' month",
nativeQuery = true )
public List<Postulante> personasConExperienciaMayor(long meses);
@Query("select pos from Postulante pos join PostulanteTecnologia pt on pt.postulante.id=pos.id "+
"join Tecnologia tec on pt.tecnologia.id=tec.id "+
"where tec.nombre=?1 and pt.nivel=?2")
public List<Postulante> findByPostulanteTecnologiaM(String tecno,long idt);
}
package com.roshka.repositorio;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.roshka.modelo.PostulanteTecnologia;
public interface PostulanteTecnologiaRepository extends JpaRepository<PostulanteTecnologia,Long>{
}
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