Commit 4b088c46 by Javier Ferreira

filtro personas con experencia mayor a un año

parent 56937330
......@@ -11,4 +11,11 @@ public interface PostulanteRepository extends JpaRepository<Postulante,Long> {
@Query("select p from Postulante p join p.estudios e on e.institucion LIKE %?1%")
public List<Postulante> findByInstitucionEstudio(String institucion);
@Query(value = "select p" +
"from postulante p join experiencia x on x.postulante_id= p.id" +
"group by p.id" +
"having sum(fecha_hasta-fecha_desde)>?1 * INTERVAL '1' month",
nativeQuery = true )
public List<Postulante> personasConExperienciaMayor(long meses);
}
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