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
31173087
Commit
31173087
authored
Nov 04, 2021
by
willgonzz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filtro de postulantes que hayan tenido experiencia en un cargo
parent
c492342c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
+3
-0
curriculumsearch/src/main/java/com/roshka/repositorio/ExperienciaRepository.java
+4
-2
curriculumsearch/src/main/webapp/jsp/cargo.jsp
+22
-0
No files found.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
View file @
31173087
...
@@ -5,6 +5,7 @@ import javax.validation.ConstraintViolationException;
...
@@ -5,6 +5,7 @@ import javax.validation.ConstraintViolationException;
import
com.roshka.modelo.Postulante
;
import
com.roshka.modelo.Postulante
;
import
com.roshka.repositorio.ExperienciaRepository
;
import
com.roshka.repositorio.PostulanteRepository
;
import
com.roshka.repositorio.PostulanteRepository
;
import
com.roshka.repositorio.TecnologiaRepository
;
import
com.roshka.repositorio.TecnologiaRepository
;
...
@@ -25,6 +26,8 @@ public class PostulanteController {
...
@@ -25,6 +26,8 @@ public class PostulanteController {
@Autowired
@Autowired
TecnologiaRepository
tecRepo
;
TecnologiaRepository
tecRepo
;
@Autowired
ExperienciaRepository
expRepo
;
@RequestMapping
(
"/"
)
@RequestMapping
(
"/"
)
public
String
index
()
{
public
String
index
()
{
return
"index"
;
return
"index"
;
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/ExperienciaRepository.java
View file @
31173087
...
@@ -2,9 +2,11 @@ package com.roshka.repositorio;
...
@@ -2,9 +2,11 @@ package com.roshka.repositorio;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
com.roshka.modelo.Experiencia
;
public
interface
ExperienciaRepository
extends
JpaRepository
<
Experiencia
,
Long
>
{
import
java.util.List
;
import
com.roshka.modelo.Experiencia
;
public
interface
ExperienciaRepository
extends
JpaRepository
<
Experiencia
,
Long
>
{
public
List
<
Experiencia
>
findByCargoLike
(
String
cargo
);
}
}
curriculumsearch/src/main/webapp/jsp/cargo.jsp
0 → 100644
View file @
31173087
<
%@
taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%
>
<
%@
taglib
prefix=
"form"
uri=
"http://www.springframework.org/tags/form"
%
>
<
%@
page
contentType=
"text/html;charset=UTF-8"
language=
"java"
%
>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Cargo
</title>
</head>
<body>
<h1>
Hola
</h1>
<c:forEach
var=
"i"
items=
"${postu}"
>
<tr>
<td>
- ${i.getPostulante().getNombre()}
</td>
</tr>
<br/>
</c:forEach>
</body>
</html>
\ No newline at end of file
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