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
1210e494
Commit
1210e494
authored
Oct 29, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correcion de modelos para poder crear bd
parent
972b9c48
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
30 deletions
+35
-30
curriculumsearch/src/main/java/com/roshka/modelo/Estudio.java
+3
-2
curriculumsearch/src/main/java/com/roshka/modelo/EstudioReconocimiento.java
+8
-8
curriculumsearch/src/main/java/com/roshka/modelo/Experiencia.java
+9
-1
curriculumsearch/src/main/java/com/roshka/modelo/ExperienciaReconocimiento.java
+10
-14
curriculumsearch/src/main/java/com/roshka/modelo/ExperienciaTecnologia.java
+3
-0
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
+1
-3
curriculumsearch/src/main/java/com/roshka/modelo/PostulanteTecnologia.java
+1
-2
No files found.
curriculumsearch/src/main/java/com/roshka/modelo/Estudio.java
View file @
1210e494
...
...
@@ -10,12 +10,14 @@ import javax.persistence.GenerationType;
import
javax.persistence.Id
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.OneToMany
;
import
javax.persistence.Table
;
@Entity
@Table
(
name
=
"estudio"
)
public
class
Estudio
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"id"
)
private
long
id
;
@Column
(
name
=
"tipo_de_studio"
)
private
String
tipoDeEstudio
;
...
...
@@ -34,8 +36,7 @@ public class Estudio {
@JoinColumn
private
Postulante
postulante
;
@ManyToOne
@JoinColumn
@OneToMany
(
mappedBy
=
"estudio"
)
private
List
<
EstudioReconocimiento
>
estudioReconocimiento
;
...
...
curriculumsearch/src/main/java/com/roshka/modelo/EstudioReconocimiento.java
View file @
1210e494
...
...
@@ -15,6 +15,7 @@ import javax.persistence.Table;
public
class
EstudioReconocimiento
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
Long
id
;
@Column
(
name
=
"nombre"
)
private
String
nombre
;
...
...
@@ -22,15 +23,8 @@ public class EstudioReconocimiento {
private
String
certificado
;
@ManyToOne
@JoinColumn
private
Postulante
postulante
;
private
Estudio
estudio
;
public
Postulante
getPostulante
()
{
return
postulante
;
}
public
void
setPostulante
(
Postulante
postulante
)
{
this
.
postulante
=
postulante
;
}
public
EstudioReconocimiento
(
Long
id
,
String
nombre
,
String
certificado
)
{
this
.
id
=
id
;
...
...
@@ -61,4 +55,10 @@ public class EstudioReconocimiento {
public
void
setCertificado
(
String
certificado
)
{
this
.
certificado
=
certificado
;
}
public
Estudio
getEstudio
()
{
return
estudio
;
}
public
void
setEstudio
(
Estudio
estudio
)
{
this
.
estudio
=
estudio
;
}
}
curriculumsearch/src/main/java/com/roshka/modelo/Experiencia.java
View file @
1210e494
...
...
@@ -24,6 +24,9 @@ public class Experiencia {
private
String
referencias
;
@Column
(
name
=
"cargo"
)
private
String
cargo
;
@ManyToOne
@JoinColumn
private
Postulante
postulante
;
public
long
getId
()
{
return
id
;
...
...
@@ -61,5 +64,10 @@ public class Experiencia {
public
void
setCargo
(
String
cargo
)
{
this
.
cargo
=
cargo
;
}
public
void
setPostulante
(
Postulante
postulante
)
{
this
.
postulante
=
postulante
;
}
public
Postulante
getPostulante
()
{
return
postulante
;
}
}
curriculumsearch/src/main/java/com/roshka/modelo/ExperienciaReconocimiento.java
View file @
1210e494
...
...
@@ -7,11 +7,13 @@ import javax.persistence.*;
public
class
ExperienciaReconocimiento
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
long
id
;
@Column
(
name
=
"experiencia_id"
)
private
long
experienciaId
;
@Column
(
name
=
"tecnologia_id"
)
private
long
tecnologiaId
;
@ManyToOne
@JoinColumn
private
Experiencia
experiencia
;
@Column
(
name
=
"nivel"
)
private
long
nivel
;
...
...
@@ -21,17 +23,11 @@ public class ExperienciaReconocimiento {
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
public
long
getExperienciaId
()
{
return
experienciaId
;
}
public
void
setExperienciaId
(
long
experienciaId
)
{
this
.
experienciaId
=
experienciaId
;
}
public
long
getTecnologiaId
()
{
return
tecnologiaId
;
public
Experiencia
getExperiencia
()
{
return
experiencia
;
}
public
void
set
TecnologiaId
(
long
tecnologiaId
)
{
this
.
tecnologiaId
=
tecnologiaId
;
public
void
set
Experiencia
(
Experiencia
experiencia
)
{
this
.
experiencia
=
experiencia
;
}
public
long
getNivel
()
{
return
nivel
;
...
...
curriculumsearch/src/main/java/com/roshka/modelo/ExperienciaTecnologia.java
View file @
1210e494
package
com
.
roshka
.
modelo
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
...
...
@@ -13,6 +14,7 @@ import javax.persistence.Table;
public
class
ExperienciaTecnologia
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
Long
id
;
@ManyToOne
...
...
@@ -23,6 +25,7 @@ public class ExperienciaTecnologia {
@JoinColumn
private
Tecnologia
tecnologia
;
@Column
(
name
=
"nivel"
)
private
Long
nivel
;
public
Long
getId
()
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
View file @
1210e494
...
...
@@ -10,6 +10,7 @@ import java.util.List;
public
class
Postulante
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
long
id
;
@Column
(
name
=
"nombre"
)
...
...
@@ -49,15 +50,12 @@ public class Postulante {
private
String
disponibilidad
;
@OneToMany
(
mappedBy
=
"postulante"
)
@JoinColumn
()
private
List
<
PostulanteTecnologia
>
tecnologias
;
@OneToMany
(
mappedBy
=
"postulante"
)
@JoinColumn
()
private
List
<
Experiencia
>
experiencias
;
@OneToMany
(
mappedBy
=
"postulante"
)
@JoinColumn
private
List
<
Estudio
>
estudios
;
public
long
getId
()
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/PostulanteTecnologia.java
View file @
1210e494
...
...
@@ -14,14 +14,13 @@ import javax.persistence.Table;
public
class
PostulanteTecnologia
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
long
id
;
@Column
(
name
=
"nivel"
)
private
Long
nivel
;
@Column
(
name
=
"tecnologia"
)
@ManyToOne
()
@JoinColumn
private
Tecnologia
tecnologia
;
@Column
(
name
=
"postulante"
)
@ManyToOne
()
@JoinColumn
private
Postulante
postulante
;
...
...
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