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
1
Merge Requests
1
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
Oscar Enrique Gonzalez Escurra
th-app-java
Commits
ea8da093
Commit
ea8da093
authored
3 years ago
by
Joel Florentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
otras tecnologia en el form postulante.
parent
1a361ab4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
15 deletions
+26
-15
curriculumsearch/src/main/java/com/roshka/CurriculumsearchApplication.java
+1
-0
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
+1
-4
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
+1
-1
curriculumsearch/src/main/java/com/roshka/modelo/PostulanteTecnologia.java
+1
-1
curriculumsearch/src/main/resources/json/postulante.json
+9
-9
curriculumsearch/src/main/resources/json/tecnologia.json
+13
-0
No files found.
curriculumsearch/src/main/java/com/roshka/CurriculumsearchApplication.java
View file @
ea8da093
...
...
@@ -42,6 +42,7 @@ public class CurriculumsearchApplication {
guardarJson
(
convR
,
"/json/convocatoria.json"
,
ConvocatoriaCargo
.
class
);
guardarJson
(
depR
,
"/json/Departamento.json"
,
Departamento
.
class
);
guardarJson
(
ciudR
,
"/json/Ciudad.json"
,
Ciudad
.
class
);
guardarJson
(
tecRepo
,
"/json/tecnologia.json"
,
Tecnologia
.
class
);
guardarJson
(
postRepo
,
"/json/postulante.json"
,
Postulante
.
class
);
String
password
=
new
BCryptPasswordEncoder
().
encode
(
"test"
);
...
...
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
View file @
ea8da093
...
...
@@ -114,10 +114,7 @@ public class PostulanteController {
DBFile
cv
=
Helper
.
createFile
(
file
);
if
(
cv
!=
null
)
cv
.
setPostulante
(
postulante
);
postulante
.
setCvFile
(
cv
);
}
postulante
.
getTecnologias
().
stream
().
filter
(
tec
->
tec
.
getTecnologia
().
getId
()
!=
0
)
.
forEach
(
tec
->
tec
.
setTecnologia
(
tecRepo
.
getById
(
tec
.
getTecnologia
().
getId
())));
}
for
(
Estudio
estudio:
postulante
.
getEstudios
()){
String
nombreIns
=
""
;
nombreIns
=
estudio
.
getInstitucion
().
getNombre
().
toLowerCase
();
...
...
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
View file @
ea8da093
...
...
@@ -182,7 +182,7 @@ public class PostulanteRRHHController {
.
orElseThrow
(()
->
new
Exception
(
"Postulante no encontrado"
));
return
ResponseEntity
.
ok
()
.
contentType
(
MediaType
.
parseMediaType
(
"application/pdf"
))
.
header
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment; filename=\""
+
"aver
.pdf"
+
"\""
)
.
header
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment; filename=\""
+
postulante
.
getNroDocument
()
+
"
.pdf"
+
"\""
)
.
body
(
new
ByteArrayResource
(
pdf
.
generatePdfReport
(
postulante
)));
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
...
...
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/java/com/roshka/modelo/PostulanteTecnologia.java
View file @
ea8da093
...
...
@@ -31,7 +31,7 @@ public class PostulanteTecnologia {
@Min
(
value
=
1
)
@Max
(
value
=
5
)
private
Long
nivel
;
@ManyToOne
(
cascade
=
{
CascadeType
.
PERSIST
},
optional
=
false
)
@ManyToOne
()
@JoinColumn
private
Tecnologia
tecnologia
;
...
...
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/resources/json/postulante.json
View file @
ea8da093
...
...
@@ -40,19 +40,19 @@
"tecnologias"
:
[
{
"tecnologia"
:
{
"
nombre"
:
"JAVA"
"
id"
:
1
},
"nivel"
:
5
},
{
"tecnologia"
:
{
"
nombre"
:
"Python"
"
id"
:
2
},
"nivel"
:
4
},
{
"tecnologia"
:
{
"
nombre"
:
"C"
"
id"
:
3
},
"nivel"
:
5
}
...
...
@@ -99,7 +99,7 @@
"tecnologias"
:
[
{
"tecnologia"
:
{
"
nombre"
:
"Spring"
"
id"
:
4
},
"nivel"
:
2
}
...
...
@@ -146,7 +146,7 @@
"tecnologias"
:
[
{
"tecnologia"
:
{
"
nombre"
:
"Django"
"
id"
:
5
},
"nivel"
:
3
}
...
...
@@ -193,7 +193,7 @@
"tecnologias"
:
[
{
"tecnologia"
:
{
"
nombre"
:
"Flutter"
"
id"
:
6
},
"nivel"
:
2
}
...
...
@@ -240,7 +240,7 @@
"tecnologias"
:
[
{
"tecnologia"
:
{
"
nombre"
:
"Switf"
"
id"
:
3
},
"nivel"
:
5
}
...
...
@@ -287,7 +287,7 @@
"tecnologias"
:
[
{
"tecnologia"
:
{
"
nombre"
:
"SL"
"
id"
:
2
},
"nivel"
:
4
}
...
...
@@ -334,7 +334,7 @@
"tecnologias"
:
[
{
"tecnologia"
:
{
"
nombre"
:
"Scala"
"
id"
:
5
},
"nivel"
:
5
}
...
...
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/resources/json/tecnologia.json
View file @
ea8da093
...
...
@@ -18,5 +18,17 @@
{
"id"
:
5
,
"nombre"
:
"spring"
},
{
"id"
:
6
,
"nombre"
:
"php"
},
{
"id"
:
7
,
"nombre"
:
"laravel"
},
{
"id"
:
8
,
"nombre"
:
"sqlserver"
}
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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