Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
misuperproyecto
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
Nahuel Mereles Rodriguez
misuperproyecto
Commits
31535b9f
Commit
31535b9f
authored
May 13, 2022
by
Yovan Martinez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
terminado carga de datos del postulante a excepcion de sus respectivos lenguajes
parent
026d518c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
0 deletions
+58
-0
src/main/java/com/roshka/proyectofinal/Postulante/PostulanteLenguajeDao.java
+26
-0
src/main/java/com/roshka/proyectofinal/entity/PostulanteLenguaje.java
+32
-0
No files found.
src/main/java/com/roshka/proyectofinal/Postulante/PostulanteLenguajeDao.java
0 → 100644
View file @
31535b9f
package
com
.
roshka
.
proyectofinal
.
Postulante
;
import
com.roshka.proyectofinal.DataBase
;
import
com.roshka.proyectofinal.entity.PostulanteLenguaje
;
import
java.sql.Connection
;
import
java.sql.PreparedStatement
;
public
class
PostulanteLenguajeDao
{
public
static
int
save
(
PostulanteLenguaje
lenguajes
){
int
status
=
0
;
try
{
Connection
con
=
DataBase
.
getConnection
();
PreparedStatement
ps
=
con
.
prepareStatement
(
"insert into postulante_lenguaje(id_postulante,id_lenguaje) values (?,?)"
);
ps
.
setInt
(
1
,
lenguajes
.
getIdPostulante
());
ps
.
setInt
(
2
,
lenguajes
.
getIdLenguaje
());
status
=
ps
.
executeUpdate
();
con
.
close
();
}
catch
(
Exception
ex
){
ex
.
printStackTrace
();}
return
status
;
}
}
src/main/java/com/roshka/proyectofinal/entity/PostulanteLenguaje.java
0 → 100644
View file @
31535b9f
package
com
.
roshka
.
proyectofinal
.
entity
;
public
class
PostulanteLenguaje
{
private
int
idPostulante
,
idLenguaje
,
id
;
public
PostulanteLenguaje
()
{
}
public
PostulanteLenguaje
(
int
idPostulante
)
{
this
.
idPostulante
=
idPostulante
;
this
.
idLenguaje
=
idPostulante
;
}
public
int
getId
(){
return
id
;
}
public
int
getIdPostulante
(){
return
idPostulante
;
}
public
void
setIdPostulante
(
int
idPostulante
)
{
this
.
idPostulante
=
idPostulante
;
}
public
int
getIdLenguaje
()
{
return
idLenguaje
;
}
public
void
setIdLenguaje
(
int
idLenguaje
)
{
this
.
idLenguaje
=
idLenguaje
;
}
}
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