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
3ec2ab8e
Commit
3ec2ab8e
authored
Oct 28, 2021
by
willgonzz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clases Estudio y EstudioReconocimiento
parent
f6f243ef
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
134 additions
and
0 deletions
+134
-0
curriculumsearch/src/main/java/com/roshka/modelo/Estudio.java
+81
-0
curriculumsearch/src/main/java/com/roshka/modelo/EstudioReconocimiento.java
+46
-0
curriculumsearch/src/main/resources/application.properties
+7
-0
No files found.
curriculumsearch/src/main/java/com/roshka/modelo/Estudio.java
View file @
3ec2ab8e
package
com
.
roshka
.
modelo
;
import
java.util.Date
;
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
=
"estudio"
)
public
class
Estudio
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
long
id
;
@Column
(
name
=
"tipo_de_studio"
)
private
String
tipoDeEstudio
;
@Column
(
name
=
"institucion"
)
private
String
institucion
;
@Column
(
name
=
"fecha_desde"
)
private
Date
fechaDesde
;
@Column
(
name
=
"fecha_hasta"
)
private
Date
fechaHasta
;
@Column
(
name
=
"referencias"
)
private
String
referencias
;
@Column
(
name
=
"titulo"
)
private
String
titulo
;
public
long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
public
String
getTipoDeEstudio
()
{
return
this
.
tipoDeEstudio
;
}
public
void
setTipoDeEstudio
(
String
tipoDeEstudio
)
{
this
.
tipoDeEstudio
=
tipoDeEstudio
;
}
public
String
getInstitucion
()
{
return
this
.
institucion
;
}
public
void
setInstitucion
(
String
institucion
)
{
this
.
institucion
=
institucion
;
}
public
Date
getFechaDesde
()
{
return
this
.
fechaDesde
;
}
public
void
setFechaDesde
(
Date
fechaDesde
)
{
this
.
fechaDesde
=
fechaDesde
;
}
public
Date
getFechaHasta
()
{
return
this
.
fechaHasta
;
}
public
void
setFechaHasta
(
Date
fechaHasta
)
{
this
.
fechaHasta
=
fechaHasta
;
}
public
String
getReferencias
()
{
return
this
.
referencias
;
}
public
void
setReferencias
(
String
referencias
)
{
this
.
referencias
=
referencias
;
}
public
String
getTitulo
()
{
return
this
.
titulo
;
}
public
void
setTitulo
(
String
titulo
)
{
this
.
titulo
=
titulo
;
}
}
curriculumsearch/src/main/java/com/roshka/modelo/EstudioReconocimiento.java
View file @
3ec2ab8e
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
=
"estudio_reconocimiento"
)
public
class
EstudioReconocimiento
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
@Column
(
name
=
"nombre"
)
private
String
nombre
;
@Column
(
name
=
"certificado"
)
private
String
certificado
;
public
EstudioReconocimiento
(
Long
id
,
String
nombre
,
String
certificado
)
{
this
.
id
=
id
;
this
.
nombre
=
nombre
;
this
.
certificado
=
certificado
;
}
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getNombre
()
{
return
this
.
nombre
;
}
public
void
setNombre
(
String
nombre
)
{
this
.
nombre
=
nombre
;
}
public
String
getCertificado
()
{
return
this
.
certificado
;
}
public
void
setCertificado
(
String
certificado
)
{
this
.
certificado
=
certificado
;
}
}
curriculumsearch/src/main/resources/application.properties
View file @
3ec2ab8e
spring.jpa.hibernate.ddl-auto
=
none
spring.sql.init.mode
=
always
spring.sql.init.platform
=
postgres
spring.datasource.url
=
${SPRING_DATASOURCE_URL}
spring.datasource.username
=
${SPRING_DATASOURCE_USERNAME}
spring.datasource.password
=
${SPRING_DATASOURCE_PASSWORD}
\ No newline at end of file
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