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
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
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
31 deletions
+36
-31
curriculumsearch/src/main/java/com/roshka/modelo/Estudio.java
+4
-3
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;
...
@@ -10,12 +10,14 @@ import javax.persistence.GenerationType;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.OneToMany
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
@Entity
@Entity
@Table
(
name
=
"estudio"
)
@Table
(
name
=
"estudio"
)
public
class
Estudio
{
public
class
Estudio
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"id"
)
private
long
id
;
private
long
id
;
@Column
(
name
=
"tipo_de_studio"
)
@Column
(
name
=
"tipo_de_studio"
)
private
String
tipoDeEstudio
;
private
String
tipoDeEstudio
;
...
@@ -34,8 +36,7 @@ public class Estudio {
...
@@ -34,8 +36,7 @@ public class Estudio {
@JoinColumn
@JoinColumn
private
Postulante
postulante
;
private
Postulante
postulante
;
@ManyToOne
@OneToMany
(
mappedBy
=
"estudio"
)
@JoinColumn
private
List
<
EstudioReconocimiento
>
estudioReconocimiento
;
private
List
<
EstudioReconocimiento
>
estudioReconocimiento
;
...
...
curriculumsearch/src/main/java/com/roshka/modelo/EstudioReconocimiento.java
View file @
1210e494
...
@@ -15,6 +15,7 @@ import javax.persistence.Table;
...
@@ -15,6 +15,7 @@ import javax.persistence.Table;
public
class
EstudioReconocimiento
{
public
class
EstudioReconocimiento
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"nombre"
)
@Column
(
name
=
"nombre"
)
private
String
nombre
;
private
String
nombre
;
...
@@ -22,15 +23,8 @@ public class EstudioReconocimiento {
...
@@ -22,15 +23,8 @@ public class EstudioReconocimiento {
private
String
certificado
;
private
String
certificado
;
@ManyToOne
@ManyToOne
@JoinColumn
@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
)
{
public
EstudioReconocimiento
(
Long
id
,
String
nombre
,
String
certificado
)
{
this
.
id
=
id
;
this
.
id
=
id
;
...
@@ -61,4 +55,10 @@ public class EstudioReconocimiento {
...
@@ -61,4 +55,10 @@ public class EstudioReconocimiento {
public
void
setCertificado
(
String
certificado
)
{
public
void
setCertificado
(
String
certificado
)
{
this
.
certificado
=
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 {
...
@@ -24,6 +24,9 @@ public class Experiencia {
private
String
referencias
;
private
String
referencias
;
@Column
(
name
=
"cargo"
)
@Column
(
name
=
"cargo"
)
private
String
cargo
;
private
String
cargo
;
@ManyToOne
@JoinColumn
private
Postulante
postulante
;
public
long
getId
()
{
public
long
getId
()
{
return
id
;
return
id
;
...
@@ -61,5 +64,10 @@ public class Experiencia {
...
@@ -61,5 +64,10 @@ public class Experiencia {
public
void
setCargo
(
String
cargo
)
{
public
void
setCargo
(
String
cargo
)
{
this
.
cargo
=
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.*;
...
@@ -7,11 +7,13 @@ import javax.persistence.*;
public
class
ExperienciaReconocimiento
{
public
class
ExperienciaReconocimiento
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
long
id
;
private
long
id
;
@Column
(
name
=
"experiencia_id"
)
private
long
experienciaId
;
@ManyToOne
@Column
(
name
=
"tecnologia_id"
)
@JoinColumn
private
long
tecnologiaId
;
private
Experiencia
experiencia
;
@Column
(
name
=
"nivel"
)
@Column
(
name
=
"nivel"
)
private
long
nivel
;
private
long
nivel
;
...
@@ -21,17 +23,11 @@ public class ExperienciaReconocimiento {
...
@@ -21,17 +23,11 @@ public class ExperienciaReconocimiento {
public
void
setId
(
long
id
)
{
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
}
}
public
long
getExperienciaId
()
{
public
Experiencia
getExperiencia
()
{
return
experiencia
Id
;
return
experiencia
;
}
}
public
void
setExperienciaId
(
long
experienciaId
)
{
public
void
setExperiencia
(
Experiencia
experiencia
)
{
this
.
experienciaId
=
experienciaId
;
this
.
experiencia
=
experiencia
;
}
public
long
getTecnologiaId
()
{
return
tecnologiaId
;
}
public
void
setTecnologiaId
(
long
tecnologiaId
)
{
this
.
tecnologiaId
=
tecnologiaId
;
}
}
public
long
getNivel
()
{
public
long
getNivel
()
{
return
nivel
;
return
nivel
;
...
...
curriculumsearch/src/main/java/com/roshka/modelo/ExperienciaTecnologia.java
View file @
1210e494
package
com
.
roshka
.
modelo
;
package
com
.
roshka
.
modelo
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.GenerationType
;
...
@@ -13,6 +14,7 @@ import javax.persistence.Table;
...
@@ -13,6 +14,7 @@ import javax.persistence.Table;
public
class
ExperienciaTecnologia
{
public
class
ExperienciaTecnologia
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
Long
id
;
private
Long
id
;
@ManyToOne
@ManyToOne
...
@@ -23,6 +25,7 @@ public class ExperienciaTecnologia {
...
@@ -23,6 +25,7 @@ public class ExperienciaTecnologia {
@JoinColumn
@JoinColumn
private
Tecnologia
tecnologia
;
private
Tecnologia
tecnologia
;
@Column
(
name
=
"nivel"
)
private
Long
nivel
;
private
Long
nivel
;
public
Long
getId
()
{
public
Long
getId
()
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
View file @
1210e494
...
@@ -10,6 +10,7 @@ import java.util.List;
...
@@ -10,6 +10,7 @@ import java.util.List;
public
class
Postulante
{
public
class
Postulante
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
long
id
;
private
long
id
;
@Column
(
name
=
"nombre"
)
@Column
(
name
=
"nombre"
)
...
@@ -49,15 +50,12 @@ public class Postulante {
...
@@ -49,15 +50,12 @@ public class Postulante {
private
String
disponibilidad
;
private
String
disponibilidad
;
@OneToMany
(
mappedBy
=
"postulante"
)
@OneToMany
(
mappedBy
=
"postulante"
)
@JoinColumn
()
private
List
<
PostulanteTecnologia
>
tecnologias
;
private
List
<
PostulanteTecnologia
>
tecnologias
;
@OneToMany
(
mappedBy
=
"postulante"
)
@OneToMany
(
mappedBy
=
"postulante"
)
@JoinColumn
()
private
List
<
Experiencia
>
experiencias
;
private
List
<
Experiencia
>
experiencias
;
@OneToMany
(
mappedBy
=
"postulante"
)
@OneToMany
(
mappedBy
=
"postulante"
)
@JoinColumn
private
List
<
Estudio
>
estudios
;
private
List
<
Estudio
>
estudios
;
public
long
getId
()
{
public
long
getId
()
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/PostulanteTecnologia.java
View file @
1210e494
...
@@ -14,14 +14,13 @@ import javax.persistence.Table;
...
@@ -14,14 +14,13 @@ import javax.persistence.Table;
public
class
PostulanteTecnologia
{
public
class
PostulanteTecnologia
{
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
long
id
;
private
long
id
;
@Column
(
name
=
"nivel"
)
@Column
(
name
=
"nivel"
)
private
Long
nivel
;
private
Long
nivel
;
@Column
(
name
=
"tecnologia"
)
@ManyToOne
()
@ManyToOne
()
@JoinColumn
@JoinColumn
private
Tecnologia
tecnologia
;
private
Tecnologia
tecnologia
;
@Column
(
name
=
"postulante"
)
@ManyToOne
()
@ManyToOne
()
@JoinColumn
@JoinColumn
private
Postulante
postulante
;
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