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
5bae62e6
Commit
5bae62e6
authored
Nov 04, 2021
by
Joaquin Elias Baranda Ayala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Creacion de clase TipoExperiencia
parent
7b2e1fe1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
17 deletions
+49
-17
curriculumsearch/src/main/java/com/roshka/modelo/Experiencia.java
+6
-17
curriculumsearch/src/main/java/com/roshka/modelo/TipoExperiencia.java
+43
-0
No files found.
curriculumsearch/src/main/java/com/roshka/modelo/Experiencia.java
View file @
5bae62e6
...
...
@@ -45,17 +45,17 @@ public class Experiencia {
@NotBlank
(
message
=
"Este campo no puede estar vacio"
)
private
String
cargo
;
@Column
(
name
=
"descripcion
"
)
private
String
descripcion
;
@Column
(
name
=
"motivo_salida
"
)
private
String
motivoSalida
;
@JsonBackReference
@ManyToOne
(
optional
=
false
)
@JoinColumn
private
Postulante
postulante
;
@
JsonManagedReferenc
e
@OneToMany
(
mappedBy
=
"experiencia"
,
cascade
=
CascadeType
.
ALL
)
private
List
<
ExperienciaReconocimiento
>
reconocimientos
;
@
ManyToOn
e
private
TipoExperiencia
tipoExperiencia
;
public
long
getId
()
{
return
id
;
...
...
@@ -105,16 +105,5 @@ public class Experiencia {
public
Postulante
getPostulante
()
{
return
postulante
;
}
public
String
getDescripcion
()
{
return
descripcion
;
}
public
void
setDescripcion
(
String
descripcion
)
{
this
.
descripcion
=
descripcion
;
}
public
void
setReconocimientos
(
List
<
ExperienciaReconocimiento
>
reconocimientos
)
{
this
.
reconocimientos
=
reconocimientos
;
}
public
List
<
ExperienciaReconocimiento
>
getReconocimientos
()
{
return
reconocimientos
;
}
}
curriculumsearch/src/main/java/com/roshka/modelo/TipoExperiencia.java
0 → 100644
View file @
5bae62e6
package
com
.
roshka
.
modelo
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
@Entity
@Table
(
name
=
"tipo_experiencia"
)
public
class
TipoExperiencia
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
long
id
;
@Column
(
name
=
"descripcion"
)
private
String
descripcion
;
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
public
String
getDescripcion
()
{
return
descripcion
;
}
public
void
setDescripcion
(
String
descripcion
)
{
this
.
descripcion
=
descripcion
;
}
}
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