Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
th-app-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amparo Oliver
th-app-java
Commits
7b2e1fe1
Commit
7b2e1fe1
authored
Nov 04, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Plain Diff
merge experencia en tecnologia
parents
ba7b03ad
753b5227
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
14 deletions
+12
-14
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
+2
-6
curriculumsearch/src/main/java/com/roshka/modelo/PostulanteTecnologia.java
+0
-6
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java
+7
-2
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteTecnologiaRepository.java
+3
-0
No files found.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
View file @
7b2e1fe1
...
@@ -19,12 +19,6 @@ import org.springframework.stereotype.Controller;
...
@@ -19,12 +19,6 @@ import org.springframework.stereotype.Controller;
import
org.springframework.ui.Model
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.MethodArgumentNotValidException
;
import
org.springframework.web.bind.MethodArgumentNotValidException
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.servlet.ModelAndView
;
import
java.sql.SQLOutput
;
import
java.util.List
;
import
java.util.Locale
;
...
@@ -92,6 +86,8 @@ public class PostulanteController {
...
@@ -92,6 +86,8 @@ public class PostulanteController {
return
ResponseEntity
.
status
(
HttpStatus
.
BAD_REQUEST
)
return
ResponseEntity
.
status
(
HttpStatus
.
BAD_REQUEST
)
.
body
(
ex
.
getMessage
());
.
body
(
ex
.
getMessage
());
}
}
}
}
curriculumsearch/src/main/java/com/roshka/modelo/PostulanteTecnologia.java
View file @
7b2e1fe1
...
@@ -63,10 +63,4 @@ public class PostulanteTecnologia {
...
@@ -63,10 +63,4 @@ public class PostulanteTecnologia {
}
}
}
}
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java
View file @
7b2e1fe1
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
java.util.List
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.modelo.PostulanteTecnologia
;
public
interface
PostulanteRepository
extends
JpaRepository
<
Postulante
,
Long
>
{
public
interface
PostulanteRepository
extends
JpaRepository
<
Postulante
,
Long
>
{
...
@@ -30,4 +31,8 @@ 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"
,
"having sum(fecha_hasta-fecha_desde)>?1 * INTERVAL '1' month"
,
nativeQuery
=
true
)
nativeQuery
=
true
)
public
List
<
Postulante
>
personasConExperienciaMayor
(
long
meses
);
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
);
}
}
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteTecnologiaRepository.java
View file @
7b2e1fe1
package
com
.
roshka
.
repositorio
;
package
com
.
roshka
.
repositorio
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
com.roshka.modelo.PostulanteTecnologia
;
import
com.roshka.modelo.PostulanteTecnologia
;
public
interface
PostulanteTecnologiaRepository
extends
JpaRepository
<
PostulanteTecnologia
,
Long
>{
public
interface
PostulanteTecnologiaRepository
extends
JpaRepository
<
PostulanteTecnologia
,
Long
>{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment